/* ==========================================================================
   SideLaunch Core Design System & Stylesheet
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-main: #06050f;
    --bg-darker: #030209;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    
    /* Harmonious Brand Colors */
    --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --secondary-gradient: linear-gradient(135deg, #b224ef 0%, #7579ff 100%);
    --accent-gradient: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    
    --color-primary: #00f2fe;
    --color-secondary: #7579ff;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-white: #ffffff;
    --color-dark: #0f172a;
    
    /* Action Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --info: #0ea5e9;
    --info-bg: rgba(14, 165, 233, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    
    /* Layout */
    --nav-height: 80px;
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--color-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

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

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

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

/* Typography Utility Classes */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.25;
}

p {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

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

.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-info { color: var(--info); }
.text-muted { color: var(--color-text-muted); }
.w-full { width: 100%; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }

/* Grid Layouts & Containers */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphism Helper */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--bg-darker);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border: 1px solid var(--border-color);
}

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

.btn-success {
    background: var(--success);
    color: var(--bg-darker);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Glass Floating Navbar */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(6, 5, 15, 0.7);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.glass-nav.scrolled {
    background: rgba(3, 2, 9, 0.85);
    height: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    text-decoration: none;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    color: var(--bg-darker);
    font-size: 1.1rem;
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-white);
}

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

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Drawer Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-darker);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1100;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    transition: var(--transition-smooth);
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    display: block;
    transition: var(--transition-fast);
}

.mobile-link:hover {
    color: var(--color-white);
    padding-left: 0.5rem;
}

/* Hero Section */
.hero-section {
    padding: calc(var(--nav-height) + 4rem) 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 10%;
    left: -10%;
    z-index: -1;
}

.hero-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(117, 121, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -10%;
    right: -10%;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(0, 242, 254, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-tech-strip {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-tech-strip span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-icon-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--color-text);
}

.tech-icon-pill i {
    color: var(--color-primary);
}

/* Visual Dashboard Code Block in Hero */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.visual-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.visual-code {
    padding: 1.5rem;
    background: #04030a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
}

.code-comment { color: #6272a4; }
.code-keyword { color: #ff79c6; }
.code-string { color: #f1fa8c; }
.code-function { color: #50fa7b; }

.visual-footer {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 1rem;
}

.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Stats Section */
.stats-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Section Common Headers */
.section-header {
    margin-bottom: 3.5rem;
}

.section-header.text-center {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

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

/* ROI Calculator Styles */
.roi-section {
    padding: 6rem 0;
    position: relative;
}

.roi-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    overflow: hidden;
}

.roi-inputs {
    padding: 3rem;
    border-right: 1px solid var(--border-color);
}

.roi-outputs {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title-sm {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.card-title-sm i {
    color: var(--color-primary);
}

.input-group-range {
    margin-bottom: 2rem;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.range-labels label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
}

.range-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(0, 242, 254, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

/* Customizing Range Input Sliders */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    outline: none;
    margin: 1rem 0 0.5rem;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.8);
}

.range-min-max {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ROI Stats Display */
.roi-stats-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.roi-stat-main {
    text-align: center;
}

.roi-stat-main.highlight {
    margin-top: 1.5rem;
}

.roi-stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.roi-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
}

.roi-stat-value.text-muted {
    font-size: 1.8rem;
    color: #475569;
}

.roi-stat-divider {
    text-align: center;
    position: relative;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin: 1rem 0;
}

.roi-stat-divider::before, .roi-stat-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.roi-stat-divider::before { left: 0; }
.roi-stat-divider::after { right: 0; }

.roi-pill-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.roi-desc-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Projects Catalog Styles */
.projects-section {
    padding: 6rem 0;
    position: relative;
}

.projects-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Filters */
.filter-wrapper {
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-filter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--color-text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.btn-filter:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    border-color: var(--border-hover);
}

.btn-filter.active {
    background: var(--primary-gradient);
    color: var(--bg-darker);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 242, 254, 0.2);
}

/* Profile Switcher Styles */
.profile-switcher-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-switcher-container .switcher-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-switcher-container .switcher-title i {
    color: var(--color-primary);
}

.profile-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
}

.btn-profile {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: var(--transition-smooth);
}

.btn-profile i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.btn-profile .profile-sub {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    line-height: 1.3;
}

.btn-profile:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
    color: var(--color-white);
}

.btn-profile.active {
    background: rgba(0, 242, 254, 0.05);
    border-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.btn-profile.active i {
    color: var(--color-primary);
}

.btn-profile.active .profile-sub {
    color: rgba(255, 255, 255, 0.7);
}

/* Card License Toggle */
.license-toggle-container {
    margin-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.license-toggle-container .toggle-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.license-toggle-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.btn-toggle-license {
    background: none;
    border: none;
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: var(--transition-fast);
}

.btn-toggle-license:hover {
    color: var(--color-white);
}

.btn-toggle-license.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-toggle-license.active[data-license-type="code"] {
    color: var(--color-primary);
}

.btn-toggle-license.active[data-license-type="app"] {
    color: #ffb199;
}

@media (max-width: 768px) {
    .profile-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Search bar */
.search-container {
    position: relative;
    margin-bottom: 3rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

#search-input {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    color: var(--color-white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

#search-input::placeholder {
    color: var(--color-text-muted);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.project-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.project-category-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

/* Category Colors */
.badge-saas { background: rgba(0, 242, 254, 0.1); color: #00f2fe; border: 1px solid rgba(0, 242, 254, 0.15); }
.badge-automation { background: rgba(186, 36, 239, 0.1); color: #c084fc; border: 1px solid rgba(186, 36, 239, 0.15); }
.badge-extension { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.15); }
.badge-boilerplate { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.15); }

.project-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
}

.project-card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.price-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-white);
}

.project-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.btn-details-link {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.25rem 0;
}

.btn-details-link:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* Feature Benefits List Grid */
.features-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    background: rgba(3, 2, 9, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    color: var(--bg-darker);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Testimonials Grid Layout */
.testimonials-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.rating {
    color: #fbbf24;
    font-size: 0.9rem;
    display: flex;
    gap: 4px;
}

.comment {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    font-style: italic;
}

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

.avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.name {
    font-weight: 600;
    color: var(--color-white);
    font-size: 0.9rem;
}

.title {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* FAQ Accordion Styling */
.faq-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    background: rgba(3, 2, 9, 0.2);
}

.faq-accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    text-align: left;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.01);
}

.faq-arrow {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

/* Footer Banner CTA */
.cta-banner-section {
    padding: 6rem 0;
}

.cta-banner-card {
    padding: 4rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.cta-banner-card h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-banner-card p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Newsletter Input Style */
.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 0.35rem;
    border-radius: var(--radius-sm);
}

.newsletter-form input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    color: var(--color-white);
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: var(--color-text-muted);
}

.newsletter-msg {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

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

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.brand-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    max-width: 320px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-column h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column ul a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Modals & Checkout Design System
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(3, 2, 9, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--color-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Project Detail Modal Contents */
.modal-card {
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-body {
    padding: 3.5rem;
}

.modal-header-section {
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.modal-meta-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.modal-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
}

.modal-details-pane h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.modal-details-pane p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.features-list li i {
    color: var(--success);
    margin-top: 0.25rem;
}

.tech-badges-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

/* Modal Sidebar Purchase */
.modal-sidebar-pane {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 0;
}

.sidebar-price-card {
    text-align: center;
    margin-bottom: 1.5rem;
}

.sidebar-price-card .price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-white);
}

.includes-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.includes-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.includes-list li i {
    color: var(--color-primary);
}

/* Stripe Checkout Modal Style */
.checkout-card {
    width: 100%;
    max-width: 480px;
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3rem;
    overflow: hidden;
}

.checkout-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.checkout-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.checkout-header p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.checkout-summary-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.checkout-summary-pill .checkout-price {
    font-family: 'JetBrains Mono', monospace;
    color: var(--color-primary);
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.input-icon-wrapper input {
    padding-left: 2.75rem;
}

.payment-form input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--color-white);
    font-family: inherit;
    outline: none;
    transition: var(--transition-fast);
}

.payment-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.1);
}

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

.checkout-footer-badge {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* Steps Transition States */
.checkout-step-hidden {
    display: none !important;
}

/* Spinner for processing */
.spinner-container {
    display: flex;
    justify-content: center;
    padding: 3rem 0;
}

.custom-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#checkout-step-processing h3 {
    margin-bottom: 0.5rem;
}

/* Success Step */
.success-animation-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.success-circle {
    width: 80px;
    height: 80px;
    background: var(--success-bg);
    border: 2px solid var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--success);
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

.success-download-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
}

.success-download-box h4 {
    margin-bottom: 0.5rem;
    color: var(--success);
}

.success-download-box .btn-success {
    margin-top: 0.5rem;
}

/* Confetti Overlay */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffd300;
    border-radius: 50%;
    animation: confetti-fall 2.5s ease-out infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(600px) rotate(720deg);
        opacity: 0;
    }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2rem;
    }
    .projects-grid, .features-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    h1 { font-size: 2.4rem; }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
    }
    .nav-actions .btn {
        display: none; /* Hide desktop CTA in small viewport */
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-tech-strip {
        align-items: center;
    }
    .tech-icons {
        justify-content: center;
    }
    .roi-grid {
        grid-template-columns: 1fr;
    }
    .roi-inputs {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 2rem;
    }
    .roi-outputs {
        padding: 2rem;
    }
    .projects-grid, .features-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .modal-grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .modal-body {
        padding: 2rem;
    }
    .modal-sidebar-pane {
        position: relative;
        top: 0;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-links-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    .hero-ctas .btn {
        width: 100%;
    }
    .stats-container {
        grid-template-columns: 1fr;
    }
    .footer-links-group {
        grid-template-columns: 1fr;
    }
    .checkout-card {
        padding: 2rem 1.5rem;
    }
    .form-row-grid {
        grid-template-columns: 1fr;
    }
    .yape-qr-section {
        grid-template-columns: 1fr !important;
        justify-items: center;
        text-align: center;
        gap: 1rem;
    }
    .yape-qr-container {
        margin: 0 auto;
    }
    .yape-steps {
        text-align: left;
        padding-left: 1.5rem;
    }
}

/* ==========================================================================
   Yape Payment Method Styling
   ========================================================================== */
.payment-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.payment-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.payment-tab:hover {
    color: var(--color-white);
}

.payment-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#tab-yape.active {
    color: #e879f9;
}

#tab-card.active {
    color: var(--color-primary);
}

.payment-panel {
    display: none;
}

.payment-panel.active {
    display: block;
}

.btn-yape-primary {
    background: linear-gradient(135deg, #740b85 0%, #a21caf 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(162, 28, 175, 0.25);
}

.btn-yape-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162, 28, 175, 0.4);
}

.yape-qr-section {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.25rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.yape-qr-container {
    width: 120px;
    height: 120px;
    background: white;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.yape-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.yape-badge-logo {
    position: absolute;
    bottom: -8px;
    background: #740b85;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1.5px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.yape-instructions {
    display: flex;
    flex-direction: column;
}

.yape-amount-display {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.15rem;
}

.yape-soles-val {
    color: #e879f9;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
}

.yape-steps {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.35rem;
}

/* ==========================================================================
   Platform Badge and Compatibility Styling
   ========================================================================== */
.platform-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.platform-info-badge i {
    font-size: 0.8rem;
}

.card-compat-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.75rem 0;
}

.compat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.compat-pill.platform {
    background: rgba(14, 165, 233, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.compat-pill.difficulty {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.compat-pill.delivery {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

/* ==========================================================================
   Project Detail Modal Tab System
   ========================================================================== */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.modal-tab {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.75rem 0.25rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.modal-tab:hover, .modal-tab.active {
    color: var(--color-white);
}

.modal-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
}

.modal-tab.active::after {
    width: 100%;
}

.modal-tab-panel {
    display: none;
}

.modal-tab-panel.active {
    display: block;
}

/* ==========================================================================
   Interactive Simulators Styling
   ========================================================================== */
.simulator-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1rem;
}

.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.sim-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sim-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    text-transform: uppercase;
}

/* 1. Facturacion POS Simulator */
.fact-sim-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
}

.fact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fact-form-row {
    display: flex;
    gap: 0.5rem;
}

.fact-form-row > * {
    flex: 1;
}

.fact-form input, .fact-form select {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    color: white;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
}

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

.fact-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 120px;
    overflow-y: auto;
    background: rgba(0,0,0,0.25);
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.fact-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.ticket-preview-pane {
    background: #f8fafc;
    color: #1e293b;
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.ticket-header {
    text-align: center;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.ticket-header h5 {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.85rem;
    margin: 0;
}

.ticket-items {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    max-height: 100px;
    overflow-y: auto;
}

.ticket-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.ticket-footer {
    text-align: center;
    color: #64748b;
    font-size: 0.65rem;
}

.ticket-status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.ticket-status-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.progress-bar-container {
    width: 80%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    transition: width 0.1s ease;
}

/* 2. Thermal Print Simulator */
.printer-sim-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

.printer-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.printer-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.printer-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.printer-btn.active {
    border-color: var(--color-primary);
    background: rgba(0, 242, 254, 0.05);
}

.virtual-printer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.printer-machine {
    width: 160px;
    height: 100px;
    background: #1e1b29;
    border: 2px solid #332d4a;
    border-radius: 12px 12px 4px 4px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.printer-slot {
    width: 130px;
    height: 6px;
    background: #09080e;
    border-radius: 20px;
    margin: 0 auto 12px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
}

.printer-light {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444; /* red standby */
    box-shadow: 0 0 4px #ef4444;
}

.printer-light.printing {
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: flash 0.5s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.paper-roll-out {
    width: 120px;
    background: white;
    color: #1e293b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    padding: 0.75rem 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-radius: 0 0 4px 4px;
    margin-top: -12px; /* starts behind the machine */
    max-height: 0px;
    overflow: hidden;
    transition: max-height 3s cubic-bezier(0.1, 0.8, 0.3, 1), padding 0.3s;
    z-index: 1;
    border-bottom: 2px dashed #cbd5e1;
}

.paper-roll-out.feed {
    max-height: 220px;
    padding: 0.75rem 0.5rem;
}

.paper-content {
    line-height: 1.3;
}

/* 3. Whatsapp Phone Simulator */
.wasap-sim-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1.5rem;
    align-items: center;
}

.phone-mockup {
    width: 230px;
    height: 320px;
    background: #0b141a;
    border: 8px solid #22252a;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.phone-header {
    background: #075e54;
    color: white;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.phone-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.phone-screen {
    flex-grow: 1;
    background: #efeae2; /* WhatsApp chat background */
    background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 0);
    background-size: 12px 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    line-height: 1.35;
    position: relative;
    animation: bubble-in 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.chat-bubble.left {
    background: white;
    color: #111b21;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.chat-bubble.right {
    background: #d9fdd3;
    color: #111b21;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.chat-bubble-time {
    font-size: 0.55rem;
    color: #667781;
    text-align: right;
    margin-top: 2px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
}

.chat-bubble-time i {
    color: #53bdeb; /* blue double tick */
}

@keyframes bubble-in {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.phone-footer {
    background: #f0f2f5;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.phone-input {
    flex-grow: 1;
    background: white;
    border: none;
    border-radius: 20px;
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
    outline: none;
    color: #333;
}

.phone-send-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00a884;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    cursor: pointer;
}

/* 4. Email Campaign Simulator */
.mail-sim-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
}

.mail-dashboard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stats-grid-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.stat-card-mini {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
}

.stat-card-mini .val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: 'JetBrains Mono', monospace;
}

.stat-card-mini .lbl {
    font-size: 0.6rem;
    color: var(--color-text-muted);
}

.chart-bar-container {
    height: 50px;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    padding: 0.25rem 0.5rem;
    gap: 0.35rem;
}

.chart-bar-fill {
    width: 20px;
    background: var(--primary-gradient);
    border-radius: 2px 2px 0 0;
    transition: height 1s ease;
    height: 0%;
}

/* 5. Contabilidad Ledger Simulator */
.cont-sim-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ledger-table-wrapper {
    max-height: 120px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
    text-align: left;
}

.ledger-table th, .ledger-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ledger-table th {
    background: rgba(255,255,255,0.05);
    color: white;
    font-weight: 600;
}

.ledger-table td {
    color: var(--color-text-muted);
}

.cont-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    background: rgba(255,255,255,0.02);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.cont-sum-box {
    text-align: center;
}

.cont-sum-box .val {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.cont-sum-box .lbl {
    font-size: 0.55rem;
    color: var(--color-text-muted);
}

@media (max-width: 640px) {
    .fact-sim-grid, .printer-sim-container, .wasap-sim-container, .mail-sim-container {
        grid-template-columns: 1fr;
    }
}

