:root {
    /* ============================================
       ZYNK Theme Color System
       Usage: var(--color-name)
       ============================================ */

    /* Background Colors */
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #13131a;
    --color-bg-tertiary: #1a1a24;
    --color-bg-card: rgba(255, 255, 255, 0.03);
    --color-bg-hover: rgba(255, 255, 255, 0.05);

    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0b0;
    --color-text-tertiary: #6b6b7b;
    --color-text-muted: rgba(255, 255, 255, 0.5);

    /* ★ Brand Colors */
    --color-purple-400: #a78bfa;
    --color-purple-500: #8B5CF6;
    --color-purple-600: #7C3AED;
    --color-blue-400: #60a5fa;
    --color-blue-500: #3B82F6;
    --color-blue-600: #2563EB;
    --color-cyan-400: #22d3ee;
    --color-cyan-500: #06B6D4;
    --color-pink-400: #f472b6;
    --color-pink-500: #EC4899;

    /* ★ Semantic Colors */
    --color-success: #16e0bd;
    /* Teal-Cyan for success/active */
    --color-success-dark: #10b981;
    /* Darker teal */
    --color-warning: #f59e0b;
    /* Amber for warnings */
    --color-danger: #ef4444;
    /* Red for errors/delete */
    --color-info: #3b82f6;
    /* Blue for info */

    /* ★ Action Button Colors */
    --color-btn-primary: linear-gradient(135deg, #16e0bd 0%, #10b981 100%);
    /* Green-Teal (Activate/Start) */
    --color-btn-secondary: rgba(255, 255, 255, 0.08);
    /* Gray (Cancel) */
    --color-btn-accent: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    /* Blue-Purple (Featured) */
    --color-btn-pause: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    /* Purple (Pause) */
    --color-btn-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    /* Red (Delete) */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
    --gradient-secondary: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
    --gradient-accent: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    --gradient-success: linear-gradient(135deg, #16e0bd 0%, #10b981 100%);

    /* Border Colors */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-border-active: #16e0bd;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Effects */
    --blur-sm: 8px;
    --blur-md: 16px;
    --blur-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    --shadow-glow-success: 0 0 20px rgba(22, 224, 189, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

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

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar - Dark Theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a24;
}

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

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

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) #1a1a24;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

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

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

/* Buttons */
.btn-primary,
.btn-hero,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.btn-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--blur-sm));
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}


.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Language Toggle Button */
.btn-lang {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    backdrop-filter: blur(var(--blur-sm));
    min-width: 50px;
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* Language Indicator */
.lang-indicator {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    opacity: 0.7;
}

/* User Profile */
.user-profile {
    position: relative;
    margin-left: var(--spacing-sm);
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.user-profile:hover .user-avatar {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: var(--spacing-sm);
    min-width: 200px;
    backdrop-filter: blur(var(--blur-md));
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.user-profile:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-name {
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.profile-dropdown a,
.profile-dropdown button {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

.btn-logout {
    color: #ef4444 !important;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}



/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    top: 50%;
    right: -150px;
    animation-delay: 7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    bottom: -100px;
    left: 50%;
    animation-delay: 14s;
}

.orb-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, transparent 70%);
    top: -150px;
    left: 20%;
    animation-delay: 3s;
}

.orb-5 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
    bottom: -100px;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-purple-500);
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(var(--blur-sm));
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-purple-500);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(var(--blur-sm));
}

.stat-item {
    flex: 0 0 140px;
    width: 140px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(var(--blur-md));
    box-shadow: var(--shadow-lg);
    animation: cardFloat 6s ease-in-out infinite;
    z-index: 10;
}

.card-1 {
    top: 10%;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    right: 10%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

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

.card-title {
    font-weight: 600;
    font-size: 1rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.card-pulse {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 12px;
    height: 12px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* AI Brain */
.ai-brain {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
}

.brain-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.6);
    animation: coreGlow 3s ease-in-out infinite;
}

@keyframes coreGlow {

    0%,
    100% {
        box-shadow: 0 0 60px rgba(139, 92, 246, 0.6);
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        box-shadow: 0 0 80px rgba(139, 92, 246, 0.8);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.brain-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

.ring-1 {
    width: 150px;
    height: 150px;
    animation-duration: 15s;
}

.ring-2 {
    width: 200px;
    height: 200px;
    animation-duration: 20s;
    animation-direction: reverse;
}

.ring-3 {
    width: 250px;
    height: 250px;
    animation-duration: 25s;
}

@keyframes ringRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

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

/* Features Section */
.features {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 16px;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Platforms Section */
.platforms {
    padding: var(--spacing-3xl) 0;
    background: rgba(255, 255, 255, 0.02);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.platform-card {
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
}

.platform-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.platform-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: all var(--transition-base);
}

.platform-icon svg {
    width: 48px;
    height: 48px;
}

.instagram {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCAF45 100%);
}

.x-twitter {
    background: #000000;
}

.facebook {
    background: #1877F2;
}

.linkedin {
    background: #0A66C2;
}

.youtube {
    background: #FF0000;
}

.tiktok {
    background: linear-gradient(135deg, #00F2EA 0%, #FF0050 100%);
}

.discord {
    background: #5865F2;
}

.naver {
    background: #03C75A;
}

.reddit {
    background: #FF4500;
}

.kakaotalk {
    background: #FEE500;
}

.line {
    background: #00B900;
}

.telegram {
    background: #26A5E4;
}

.whatsapp {
    background: #25D366;
}

.platform-card:hover .platform-icon {
    transform: scale(1.2) rotate(5deg);
}

.platform-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

/* CTA Section */
.cta {
    position: relative;
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

/* Footer */
.footer {
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    background: var(--color-bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-3xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-tagline {
    color: var(--color-text-secondary);
    margin-top: var(--spacing-md);
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.footer-column a {
    display: block;
    color: var(--color-text-secondary);
    text-decoration: none;
    margin-bottom: var(--spacing-sm);
    transition: color var(--transition-base);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-legal a {
    color: var(--color-text-tertiary);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .hero-visual {
        height: 400px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* Dashboard Variables */
:root {
    --color-cyan: #00FFA3;
    --color-cyan-glow: rgba(0, 255, 163, 0.3);
    --color-card-bg: rgba(18, 18, 22, 0.6);
    /* Glassmorphism base */
    --color-card-border: rgba(255, 255, 255, 0.1);
    --color-text-muted: #9CA3AF;
    --color-success: #10B981;
    --color-warning: #F59E0B;
}

/* Dashboard Layout */
.dashboard-body {
    background-color: var(--color-bg-primary);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    overflow: hidden;
    height: 100vh;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
}

.dashboard-layout {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(var(--blur-md));
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    flex-shrink: 0;
}

.sidebar-header {
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-lg);
}

.menu-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px 16px;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-base);
    margin-bottom: 4px;
    font-weight: 500;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
}

.menu-item.active {
    background: var(--color-cyan);
    color: #000;
    font-weight: 600;
    box-shadow: 0 0 20px var(--color-cyan-glow);
}

.menu-item.active svg {
    stroke: #000;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content */
.dashboard-main {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-xl);
    position: relative;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-2xl);
}

.dashboard-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #9CA3AF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.header-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.system-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #10B981;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.btn-lang-sm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
}

.btn-lang-sm:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

/* Sections */
.dashboard-section {
    margin-bottom: var(--spacing-3xl);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    /* Reset landing page styles */
    text-align: left;
    max-width: none;
    margin: 0 0 var(--spacing-lg);
    padding-left: 0;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.info-icon {
    color: var(--color-text-tertiary);
    cursor: help;
    transition: color var(--transition-fast);
}

.info-icon:hover {
    color: var(--color-text-primary);
}

/* Hive Grid - 3 Columns Enforced */
/* Hive Grid definition removed (duplicate) - see bottom of file */

/* Client Cards */
.client-card {
    background: var(--color-card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.client-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.client-card.status-nominal {
    border-top: 2px solid var(--color-success);
}

.client-card.status-attention {
    border-top: 2px solid var(--color-warning);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.nominal {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.attention {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.card-tags {
    display: flex;
    gap: 8px;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.tag.blockchain {
    color: #60A5FA;
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.2);
}

.tag.general {
    color: #A78BFA;
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.2);
}

.card-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 8px 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trend-up {
    color: var(--color-success);
    font-size: 0.85rem;
    font-weight: 500;
}

.trend-down {
    color: var(--color-warning);
    font-size: 0.85rem;
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-mission {
    flex: 1;
    background: var(--color-cyan);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-display);
}

.btn-mission:hover {
    background: #00E692;
    box-shadow: 0 0 20px var(--color-cyan-glow);
    transform: translateY(-1px);
}

.btn-settings {
    width: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Bottom Grid */
.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

/* Stats */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: var(--color-card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    background: linear-gradient(to bottom, #fff, #9CA3AF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* Action Center */
.action-center-box {
    background: var(--color-card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    height: 100%;
    min-height: 300px;
    padding: 24px;
}

.empty-action-state {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-tertiary);
    font-style: italic;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

@media (max-width: 1400px) {
    .hive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .hive-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating Action Button (FAB) */
.fab-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-cyan);
    color: #000;
    border: none;
    box-shadow: 0 4px 20px var(--color-cyan-glow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 100;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background: #00E692;
    box-shadow: 0 0 30px var(--color-cyan-glow);
}

/* Modal Styles */
/* Modal Overlay definition removed (duplicate) - see bottom of file */

.modal-content {
    background: #121216;
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-cyan);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
}

.btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.btn-submit {
    background: var(--color-cyan);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #00E692;
    box-shadow: 0 0 15px var(--color-cyan-glow);
}

/* =========================================
   New Card Design (VisionChain Style)
   ========================================= */
.hive-card {
    background: #050505;
    /* Very dark background */
    border: 1px solid #1F2937;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hive-card:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

/* Card Header */
.hive-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hive-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hive-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.hive-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.hive-tag {
    align-self: flex-start;
    background: #1E3A8A;
    /* Dark Blue */
    color: #93C5FD;
    /* Light Blue Text */
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.hive-status-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10B981;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hive-status-badge.attention {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
    color: #EF4444;
}

/* Stats Grid */
.hive-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 10px 0;
}

.hive-stat-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.stat-icon-wrapper {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-bottom: 4px;
}

.stat-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-display);
}

.stat-delta {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.stat-delta.positive {
    color: #10B981;
}

.stat-delta.negative {
    color: #EF4444;
}

/* Actions Footer */
.hive-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-mission-control {
    flex: 1;
    background: var(--color-cyan);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mission-control:hover {
    background: #22D3EE;
    /* Lighter Cyan */
    transform: translateY(-1px);
}

.btn-settings {
    width: 44px;
    height: 44px;
    /* Match height of main button approx */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Add Project Panel */
.add-project-panel {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    /* Match approx height of cards */
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.01);
}

.add-project-panel:hover {
    border-color: var(--color-cyan);
    background: rgba(6, 182, 212, 0.05);
}

.add-project-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.add-project-panel:hover .add-project-icon {
    background: var(--color-cyan);
    color: #000;
    transform: scale(1.1);
}

/* 1️⃣ 섹션 좌측 정렬 통일용 래퍼 */
.dashboard-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 2️⃣ 3컬럼 그리드 + “Add New Project” 카드 스타일 */
.hive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

/* 반응형 (선택사항) */
@media (max-width: 1024px) {
    .hive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hive-grid {
        grid-template-columns: 1fr;
    }
}

/* “Add New Project” 카드 */
.client-card.add-project-card {
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 1.75rem 1.5rem;
    transition: all 0.2s ease;
}

.client-card.add-project-card:hover {
    border-color: var(--color-cyan, #22f6c8);
    box-shadow: 0 0 0 1px rgba(34, 246, 200, 0.3);
    transform: translateY(-2px);
}

.add-project-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.add-project-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.9);
}

.add-project-label {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.95);
}

/* 3️⃣ 모달 표시용 클래스 (JS에서 .open 사용) */
/* 기본적으로 모달 숨김 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* JS에서 modal.classList.add('open') 하면 표시 */
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Wizard Modal Styles */
.wizard-modal {
    max-width: 600px;
}

.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 0 16px;
    position: relative;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    background: var(--color-cyan);
    color: #000;
    border-color: var(--color-cyan);
    box-shadow: 0 0 15px var(--color-cyan-glow);
}

.step-indicator.completed .step-number {
    background: var(--color-success);
    color: #fff;
    border-color: var(--color-success);
}

.step-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.step-indicator.active .step-label {
    color: #fff;
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 12px;
    margin-bottom: 20px;
    /* Align with circle center roughly */
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.form-row {
    display: flex;
    gap: 16px;
}

.form-group.half {
    flex: 1;
}

.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.02);
}

.file-upload-area:hover {
    border-color: var(--color-cyan);
    background: rgba(0, 255, 255, 0.02);
}

.upload-icon {
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.file-list {
    margin-top: 16px;
    text-align: left;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.summary-card h4 {
    margin-bottom: 16px;
    color: var(--color-cyan);
    font-family: var(--font-display);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.summary-item .label {
    color: var(--color-text-secondary);
}

.summary-item .value {
    color: #fff;
    font-weight: 600;
}

.launch-note {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

.btn-launch {
    background: linear-gradient(135deg, var(--color-cyan) 0%, #00E692 100%);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 230, 146, 0.3);
}

.btn-launch:hover {
    box-shadow: 0 6px 30px rgba(0, 230, 146, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

.admin-body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background: #0a0a0f;
    color: #fff;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.admin-logo {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-logo h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--color-cyan) 0%, #00ff88 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-badge {
    background: rgba(0, 255, 255, 0.1);
    color: var(--color-cyan);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.9);
}

.admin-nav-item.active {
    background: rgba(0, 255, 255, 0.05);
    color: var(--color-cyan);
    border-left-color: var(--color-cyan);
}

.admin-nav-item svg {
    flex-shrink: 0;
}

.admin-sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-btn-secondary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.admin-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.admin-user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-user-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.admin-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.admin-loading {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

.admin-placeholder {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.admin-placeholder h3 {
    margin: 0 0 12px 0;
    color: var(--color-cyan);
}

.admin-placeholder p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

/* Admin Cards */
.admin-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* Admin Buttons */
.admin-btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-cyan) 0%, #00ff88 100%);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.admin-btn-danger {
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.admin-btn-edit {
    padding: 6px 12px;
    background: rgba(0, 255, 255, 0.1);
    color: var(--color-cyan);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn-edit:hover {
    background: rgba(0, 255, 255, 0.2);
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.admin-table tbody tr {
    transition: background 0.2s;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table-actions {
    display: flex;
    gap: 8px;
}

/* Toggle Switch */
.admin-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.admin-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 24px;
}

.admin-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.admin-toggle input:checked+.admin-toggle-slider {
    background-color: var(--color-cyan);
}

.admin-toggle input:checked+.admin-toggle-slider:before {
    transform: translateX(20px);
}

/* Admin Forms */
.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.admin-form-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.admin-form-input:focus {
    outline: none;
    border-color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.05);
}

.admin-form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Admin Modal */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.admin-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.admin-modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.admin-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.admin-modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.admin-modal-body {
    padding: 24px;
}

.admin-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Status Badge */
.admin-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.admin-status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}


/* =========================================
   Project Creation Modal Input Styles
   ========================================= */
.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

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

/* Custom Industry Input specific */
#custom-industry-container {
    margin-top: 12px;
}

/* Placeholder color */
::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Select dropdown arrow override for dark mode */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' 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");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Drag & Drop Visual Feedback */
.file-upload-area.drag-over {
    border-color: var(--color-cyan);
    background: rgba(6, 182, 212, 0.1);
    transform: scale(1.02);
}

/* Button Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

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

/* Admin Agents Management Styles */

/* Modal Styles */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
    backdrop-filter: blur(4px);
}

.admin-modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

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

.admin-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.admin-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.admin-modal-close:hover {
    color: #fff;
}

.admin-modal-body {
    padding: 24px;
}

.admin-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.admin-form-group {
    margin-bottom: 16px;
}

.admin-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.admin-form-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.admin-form-input:focus {
    outline: none;
    border-color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.08);
}

textarea.admin-form-input {
    resize: vertical;
    min-height: 100px;
}

/* Visible resize handle gripper */
textarea.admin-form-input::-webkit-resizer {
    background: linear-gradient(135deg, transparent 60%, #16e0bd 60%, #16e0bd 70%, transparent 70%),
        linear-gradient(135deg, transparent 70%, #16e0bd 70%, #16e0bd 80%, transparent 80%),
        linear-gradient(135deg, transparent 80%, #16e0bd 80%, #16e0bd 90%, transparent 90%);
    cursor: ns-resize;
}

/* ============================================
   Template Detail View Styles
   ============================================ */

.template-detail-content {
    max-width: 1400px;
    width: 95vw;
    max-height: 90vh;
    background: var(--color-bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.template-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--color-bg-tertiary);
}

.header-left h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--color-text-primary);
}

.template-id {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    font-family: 'Courier New', monospace;
    margin: 0;
}

.header-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

/* Main Body */
.template-detail-body {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1.5rem;
    padding: 2rem;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.detail-column {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-right: 8px;
}

.detail-column::-webkit-scrollbar {
    width: 6px;
}

.detail-column::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

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

.detail-section {
    background: var(--color-bg-tertiary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-count {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    font-weight: 400;
}

.subsection-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Info Groups */
.info-group {
    margin-bottom: 1.25rem;
}

.info-group:last-child {
    margin-bottom: 0;
}

.info-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.info-group p {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 0.9375rem;
}

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

.channel-type-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.channel-icon {
    font-size: 1.25rem;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-active {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-paused {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.status-inactive {
    background: #6b7280;
}

/* Roles List */
.roles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.role-card {
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: all var(--transition-fast);
}

.role-card:hover {
    border-color: var(--color-purple-500);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.role-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

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

.role-info {
    flex: 1;
}

.role-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--color-text-primary);
}

.role-type {
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
    margin: 0;
}

.role-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
}

.detail-label {
    color: var(--color-text-tertiary);
}

.detail-value {
    color: var(--color-text-secondary);
    font-family: 'Courier New', monospace;
}

/* Stats Card */
.stat-card {
    background: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.stat-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.stat-success {
    color: #10b981;
}

/* Deployments List */
.deployments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.deployment-item {
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.75rem;
    transition: all var(--transition-fast);
}

.deployment-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.deployment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.deployment-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.deployment-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.deployment-status.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.deployment-status.status-paused {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.deployment-status.status-inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #9ca3af;
}

.deployment-time {
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
}

/* Footer */
.template-detail-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--color-bg-tertiary);
}

.template-detail-footer button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #dc2626;
}

.btn-full {
    width: 100%;
}

/* Responsive */
@media (max-width: 1200px) {
    .template-detail-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .detail-column {
        overflow: visible;
        height: auto;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .template-detail-content {
        width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .template-detail-header {
        flex-direction: column;
        gap: 1rem;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .template-detail-footer {
        flex-direction: column;
    }
}

/* Sub-Agent Card Styles (Admin Detail View) */
.sub-agent-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.sub-agent-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.sub-agent-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.sub-agent-main {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sub-agent-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-agent-info .role-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.role-type-badge {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
}

/* Metrics Section */
.sub-agent-metrics {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    gap: 12px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.metric-value {
    font-weight: 600;
    color: var(--color-text-primary);
}

.metric-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--color-primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--color-primary);
}

input:checked+.slider:before {
    transform: translateX(16px);
}

.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Sub-Agent Management Styles */
.btn-remove-subagent {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    margin-left: 8px;
}

.btn-remove-subagent:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Toggle Switch Colors */
input:checked+.slider {
    background-color: #22c55e !important;
    /* Neon Green */
}

input:checked+.slider:before {
    background-color: #fff;
}

.slider {
    background-color: #374151;
    /* Dark Gray */
}

/* Available Sub-Agent List Item */
.available-subagent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.available-subagent-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.available-subagent-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.available-subagent-info p {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* Sub-Agents List Scroll */
#roles-list {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 8px;
    margin-right: -8px;
    /* Align scrollbar to edge */
}

#roles-list::-webkit-scrollbar {
    width: 6px;
}

#roles-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

#roles-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}