:root {
    --primary-orange: #ff6900;
    --secondary-orange: #ff8533;
    --accent-orange: #ffb366;
    --dark-orange: #cc5200;
    --light-orange: #ffe6d9;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #111111;
    --card-hover-bg: #1a1a1a;
    --border-color: #333333;
    --border-hover: #ff6900;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --accent-blue: #00d4ff;
    --primary-green: #28a745;
    --warning: #ffc107;
    --success: #28a745;
    --error: #dc3545;
    --shadow-light: rgba(255, 105, 0, 0.1);
    --shadow-medium: rgba(255, 105, 0, 0.2);
    --shadow-heavy: rgba(255, 105, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #ff6900, #ff8533);
    --gradient-secondary: linear-gradient(135deg, #ff8533, #ffb366);
    --gradient-dark: linear-gradient(135deg, #0a0a0a, #111111);
    --border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(255, 107, 0, 0.2);
    --surface: #1a1a1a;
    --surface-hover: #222222;
    --transition-fast: 0.2s;
    --transition-medium: 0.3s;
    --transition-slow: 0.5s;
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

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

body {
    font-family: 'Fira Code', monospace;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}


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

.p-0 {
    padding-top: 0 !important;
}

.pt-0 {
    padding-top: 0;
}

.pr-1 {
    padding-right: 1rem;
}

.pl-1 {
    padding-left: 1rem;
}

.pb-1 {
    padding-bottom: 1rem;
}

.pt-2 {
    padding-top: 2rem;
}

.p-2 {
    padding: 2rem !important;
}

.mr-1 {
    margin-right: 1rem;
}

.ml-1 {
    margin-bottom: 1rem !important;
}

.mt-1 {
    margin-top: 1rem !important;
}

.mt-2 {
    margin-top: 2rem !important;
}

.mb-1 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}


.d-flex {
    display: flex;
}

.d-block {
    display: block !important;
    width: 100% !important;
}

.d-none {
    display: none !important;
}

.flex-1 {
    flex: 1;
}

.gap-1 {
    gap: 1rem;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

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

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-screen.fade-out {
    opacity: 0;
    transform: scale(1.1);
}

.terminal-loader {
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.typing-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    color: var(--primary-orange);
    text-shadow: 0 0 20px var(--primary-orange);
    animation: glow 2s ease-in-out infinite alternate;
}

.loading-dots {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-orange);
    animation: loading-bounce 1.4s ease-in-out infinite both;
    box-shadow: 0 0 15px var(--primary-orange);
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loading-bounce {

    0%,
    80%,
    100% {
        transform: scale(0) translateY(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1) translateY(-20px);
        opacity: 1;
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px var(--primary-orange);
    }

    to {
        text-shadow: 0 0 30px var(--primary-orange), 0 0 40px var(--secondary-orange);
    }
}

@keyframes pulse {

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

    50% {
        transform: scale(1.05);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    border-bottom-color: var(--primary-orange);
    box-shadow: 0 4px 30px var(--shadow-light);
}

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

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

.nav-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-orange);
    box-shadow: 0 0 15px var(--shadow-light);
}

.nav-logo h1 {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-logo h1:hover {
    transform: scale(1.05);
}

.vault-text {
    color: var(--primary-orange);
    text-shadow: 0 0 20px var(--primary-orange);
    animation: subtle-glow 3s ease-in-out infinite alternate;
}

@keyframes subtle-glow {
    from {
        text-shadow: 0 0 20px var(--primary-orange);
    }

    to {
        text-shadow: 0 0 25px var(--primary-orange), 0 0 35px var(--secondary-orange);
    }
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-orange);
    background: rgba(255, 105, 0, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 80%;
}

.language-toggle {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    font-weight: 500;
}

.language-toggle:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 0 15px var(--shadow-light);
    transform: translateY(-2px);
}

.language-toggle .flag {
    font-size: 1.2rem;
}

.language-toggle .lang-text {
    font-weight: 600;
}

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

.admin-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-medium);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-heavy);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    position: relative;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-orange);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline:hover::after {
    width: 100%;
}

.btn-outline:hover {
    color: white;
    box-shadow: 0 0 20px var(--shadow-light);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

/* Main Content */
.main-content {
    margin-top: 90px;
    min-height: calc(100vh - 90px);
}

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

/* Hero Section */
.hero {
    padding: 5rem 0;
    text-align: center;
    background: var(--gradient-dark);
    border-bottom: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 105, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 20px var(--primary-orange));
    }

    to {
        filter: drop-shadow(0 0 40px var(--primary-orange));
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 1s ease 0.7s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 15px 40px var(--shadow-medium);
    transform: translateY(-10px);
    background: var(--card-hover-bg);
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--primary-orange);
    animation: countUp 2s ease;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Search Section */
.search-section {
    padding: 4rem 0;
    background: var(--dark-bg);
}

.search-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.search-bar {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.2rem 4rem 1.2rem 1.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 25px var(--shadow-light);
    transform: translateY(-2px);
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.filter-toggle {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 1.2rem 2rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-toggle:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    box-shadow: 0 0 20px var(--shadow-light);
    transform: translateY(-2px);
}

.filter-toggle.active {
    background: var(--gradient-primary);
    border-color: var(--primary-orange);
    color: white;
}

.filters-container {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: none;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px var(--shadow-light);
}

.filters-container.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

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

.filter-group {
    margin-bottom: 2.5rem;
}

.filter-group h3 {
    color: var(--primary-orange);
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--primary-orange);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group h3::before {
    content: '▶';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-option {
    padding: 0.7rem 1.2rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Fira Code', monospace;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-option:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.filter-option.active {
    background: var(--gradient-primary);
    border-color: var(--primary-orange);
    color: white;
    box-shadow: 0 0 20px var(--shadow-medium);
    transform: scale(1.05);
}

.filter-option.active::before {
    left: 0;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* Results Section */
.results-section {
    padding-bottom: 5rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--border-color);
}

.results-header h2 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-orange);
    font-size: 2rem;
    text-shadow: 0 0 15px var(--primary-orange);
}

.results-count {
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.machines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
}

.machine-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    animation: cardFadeIn 0.6s ease forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

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

.machine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.machine-card:hover::before {
    transform: scaleX(1);
}

.machine-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 20px 60px var(--shadow-heavy);
    transform: translateY(-10px) scale(1.02);
    background: var(--card-hover-bg);
}

.machine-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.machine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.machine-card:hover .machine-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.difficulty-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

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

    50% {
        transform: scale(1.05);
    }
}

.difficulty-badge.principiante {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
}

.difficulty-badge.intermedio {
    background: rgba(255, 193, 7, 0.9);
    color: var(--darker-bg);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

.difficulty-badge.avanzado {
    background: rgba(255, 107, 53, 0.9);
    color: white;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.difficulty-badge.profesional {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
}

.difficulty-badge.experto {
    background: rgba(108, 117, 125, 0.9);
    color: white;
    box-shadow: 0 0 20px rgba(108, 117, 125, 0.5);
}

.machine-content {
    padding: 2rem;
}

.machine-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    transition: color 0.3s ease;
}

.machine-card:hover .machine-title {
    color: var(--primary-orange);
    text-shadow: 0 0 10px var(--primary-orange);
}

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

.machine-objectives {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 105, 0, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 105, 0, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.machine-objectives.expanded {
    background: rgba(255, 105, 0, 0.08);
    border-color: rgba(255, 105, 0, 0.3);
}

.machine-objectives h4 {
    color: var(--primary-orange);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.machine-objectives h4::before {
    content: '🎯';
    font-size: 1.2rem;
}

.objectives-content {
    position: relative;
}

.machine-objectives-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

/* Estilos mejorados para el estado colapsado */
.machine-objectives:not(.expanded) .machine-objectives-text {
    max-height: 6em;
    /* Aproximadamente 4 líneas con line-height 1.5 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    position: relative;
}

.machine-objectives:not(.expanded) .machine-objectives-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 1.5em;
    background: linear-gradient(to right, transparent, rgba(255, 105, 0, 0.05));
    pointer-events: none;
}

.machine-objectives.expanded .machine-objectives-text {
    max-height: none;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.machine-objectives.expanded .machine-objectives-text::after {
    display: none;
}

.objectives-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 105, 0, 0.3);
    color: var(--primary-orange);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.objectives-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 105, 0, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.objectives-toggle-btn:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 0 15px rgba(255, 105, 0, 0.3);
    transform: translateY(-1px);
    background: rgba(255, 105, 0, 0.05);
}

.objectives-toggle-btn:hover::before {
    left: 0;
}

.objectives-toggle-btn svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.machine-objectives.expanded .objectives-toggle-btn svg {
    transform: rotate(180deg);
}

.objectives-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(255, 105, 0, 0.2);
}

.machine-certifications {
    margin-bottom: 2rem;
}

.certification-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 105, 0, 0.1);
    border: 1px solid rgba(255, 105, 0, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary-orange);
    transition: all 0.3s ease;
    font-weight: 500;
}

.tag:hover {
    background: rgba(255, 105, 0, 0.2);
    border-color: var(--primary-orange);
    transform: scale(1.05);
}

.machine-actions {
    display: flex;
    gap: 0.8rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.btn-small {
    padding: 0.8rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 10px;
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-small:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    border-top: 2px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-orange);
    box-shadow: 0 0 10px var(--shadow-light);
}

.footer-section h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-orange);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--primary-orange);
}

.footer-section h4 {
    font-family: 'Orbitron', monospace;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--primary-orange);
    padding-left: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
    box-shadow: 0 0 15px var(--shadow-light);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Notification System */
.notification {
    position: fixed;
    top: 120px;
    right: 20px;
    padding: 1.2rem 1.8rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    max-width: 350px;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: rgba(40, 167, 69, 0.9);
    border-color: #28a745;
    color: white;
}

.notification.error {
    background: rgba(220, 53, 69, 0.9);
    border-color: #dc3545;
    color: white;
}

.notification.info {
    background: rgba(255, 105, 0, 0.9);
    border-color: var(--primary-orange);
    color: white;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .machines-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2rem;
    }

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

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-logo h1 {
        font-size: 1.3rem;
    }

    .nav-logo-img {
        width: 40px;
        height: 40px;
    }

    .nav-menu {
        display: none;
    }

    .nav-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-card {
        padding: 2rem;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .search-input {
        padding: 1rem 3.5rem 1rem 1rem;
    }

    .filter-toggle {
        padding: 1rem 1.5rem;
        justify-content: center;
    }

    .filters-container {
        padding: 2rem;
    }

    .filter-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .machines-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .machine-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }

    .notification.show {
        transform: translateY(0);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }

    .machine-content {
        padding: 1.5rem;
    }

    .machine-objectives {
        padding: 1rem;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--darker-bg);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
    border: 2px solid var(--darker-bg);
}

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

/* Performance optimizations */
.machine-card,
.stat-card,
.btn,
.filter-option {
    will-change: transform;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.search-input:focus,
.filter-option:focus,
input:focus,
.objectives-toggle-btn:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #666666;
        --text-secondary: #cccccc;
    }
}

/* Modals */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition-medium) ease;
    overflow-y: auto;
}

.modal-blur {
    backdrop-filter: blur(8px);
}

.modal.show {
    display: block;
    animation: fadeIn var(--transition-medium) ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal.modal-form {
    z-index: 2000 !important;
}

.modal-dialog {
    position: relative;
    width: 100%;
}

.modal-dialog-right {
    position: absolute;
    left: auto;
    right: 0 !important;
}

.modal-body {
    width: 100%;
    min-height: 100vh;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.modal-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-dialog .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    background-color: var(--surface);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding: 1.5rem;
    transition: transform var(--transition-medium) ease, border-color var(--transition-medium) ease, box-shadow var(--transition-medium) ease;
}

.modal-dialog .modal-content .modal-body {
    flex: 1 !important;
    min-height: auto;
}

.modal-content-inner {
    width: 100%;
    background-color: #1a1a1a;
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #1a1a1a;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    position: relative;
    z-index: 9999;
    transition: transform var(--transition-medium) ease, border-color var(--transition-medium) ease, box-shadow var(--transition-medium) ease;
}

.modal-info {
    width: 100%;
    padding: 1rem;
}

.modal-content-inner-sm {
    max-width: 600px !important;
}

@media (min-width: 768px) {
    .modal-info {
        width: 70%;
    }

    .modal-content-inner {
        width: 60%;
    }

    .modal-dialog {
        width: 60%;
        max-width: 600px;
        margin: 0 auto;
    }
}