/* ============================================
   MASH-UP Tools Central - Dual Theme System
   ============================================ */

/* ===========================================
   THEME TOGGLE BUTTON
   =========================================== */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10001;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.toggle-icon {
    position: absolute;
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Matrix theme toggle styling */
.theme-matrix .theme-toggle {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

.theme-matrix .theme-toggle:hover {
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.6);
    transform: scale(1.1);
}

.theme-matrix .matrix-icon {
    color: #00ff41;
    opacity: 1;
    transform: rotate(0deg);
}

.theme-matrix .pro-icon {
    color: #00ff41;
    opacity: 0;
    transform: rotate(-180deg);
}

/* Professional theme toggle styling */
.theme-pro .theme-toggle {
    background: #ffffff;
    border: 2px solid #7CB992;
    box-shadow: 0 4px 20px rgba(124, 185, 146, 0.3);
}

.theme-pro .theme-toggle:hover {
    box-shadow: 0 6px 30px rgba(124, 185, 146, 0.4);
    transform: scale(1.1);
}

.theme-pro .matrix-icon {
    color: #7CB992;
    opacity: 0;
    transform: rotate(180deg);
}

.theme-pro .pro-icon {
    color: #7CB992;
    opacity: 1;
    transform: rotate(0deg);
}

/* ===========================================
   BASE STYLES
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===========================================
   MATRIX THEME (Original)
   =========================================== */
.theme-matrix {
    --primary-bg: #000428;
    --secondary-bg: #004e92;
    --terminal-green: #00ff41;
    --terminal-amber: #ffb000;
    --terminal-blue: #00aaff;
    --border-color: #0ff;
    --text-color: #e0e0e0;
    --shadow-color: rgba(0, 255, 255, 0.4);
    --glow: 0 0 10px var(--terminal-green), 0 0 20px var(--terminal-green);
}

.theme-matrix body,
body.theme-matrix {
    font-family: 'VT323', monospace;
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><rect x="0" y="0" width="16" height="16" fill="%2300ff41"/></svg>') 8 8, auto;
    position: relative;
}

/* CRT Effects - Matrix Only */
.theme-matrix .crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    animation: flicker 0.15s infinite alternate;
}

.theme-matrix .scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 65, 0.03) 0px,
        rgba(0, 255, 65, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scanline 8s linear infinite;
}

@keyframes flicker {
    0% { opacity: 0.98; }
    100% { opacity: 1; }
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* Boot Sequence - Matrix Only */
.theme-matrix .boot-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: var(--terminal-green);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-size: 1.2rem;
    animation: fadeOut 0.5s ease-in-out 3s forwards;
}

.theme-matrix .boot-text p {
    margin: 0.5rem 0;
    animation: typeWriter 0.5s steps(40) forwards;
    opacity: 0;
}

.theme-matrix .boot-text p:nth-child(1) { animation-delay: 0s; }
.theme-matrix .boot-text p:nth-child(2) { animation-delay: 0.3s; }
.theme-matrix .boot-text p:nth-child(3) { animation-delay: 0.6s; }
.theme-matrix .boot-text p:nth-child(4) { animation-delay: 0.9s; }
.theme-matrix .boot-text p:nth-child(5) { animation-delay: 1.2s; }

.theme-matrix .boot-loading .dots::after {
    content: '';
    animation: dots 1.5s steps(4) infinite;
}

@keyframes typeWriter {
    to { opacity: 1; }
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Container - Matrix */
.theme-matrix .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    animation: slideIn 0.8s ease-out 3.2s both;
}

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

/* Header - Matrix */
.theme-matrix .header {
    border: 4px solid var(--border-color);
    border-image: repeating-linear-gradient(
        45deg,
        var(--border-color),
        var(--border-color) 10px,
        var(--terminal-blue) 10px,
        var(--terminal-blue) 20px
    ) 4;
    box-shadow:
        0 0 20px var(--shadow-color),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.theme-matrix .header::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.2) 50%, transparent 70%);
    animation: borderShine 3s linear infinite;
    pointer-events: none;
}

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

.theme-matrix .window-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    text-align: center;
    color: var(--terminal-green);
    text-shadow: var(--glow);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.theme-matrix .title-icon {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Main Content - Matrix */
.theme-matrix .main-content {
    border: 3px solid var(--terminal-green);
    background: rgba(0, 20, 40, 0.85);
    padding: 2rem;
    box-shadow:
        0 0 30px rgba(0, 255, 65, 0.3),
        inset 0 0 30px rgba(0, 255, 65, 0.05);
    min-height: 500px;
    position: relative;
}

.theme-matrix .main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 65, 0.03) 2px, rgba(0, 255, 65, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 255, 65, 0.03) 2px, rgba(0, 255, 65, 0.03) 4px);
    pointer-events: none;
}

/* Search Box - Matrix */
.theme-matrix .search-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.theme-matrix .search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--terminal-green);
    padding: 0.5rem 1rem;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.theme-matrix .search-box::before {
    content: 'C:\\>';
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: var(--terminal-green);
    margin-right: 0.75rem;
    text-shadow: 0 0 5px var(--terminal-green);
}

.theme-matrix .search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: var(--terminal-green);
    caret-color: var(--terminal-green);
    text-shadow: 0 0 5px var(--terminal-green);
}

.theme-matrix .search-input::placeholder {
    color: rgba(0, 255, 65, 0.4);
}

.theme-matrix .search-input:focus {
    animation: inputGlow 1s ease-in-out infinite alternate;
}

@keyframes inputGlow {
    from { text-shadow: 0 0 5px var(--terminal-green); }
    to { text-shadow: 0 0 15px var(--terminal-green), 0 0 25px var(--terminal-green); }
}

.theme-matrix .search-results-count {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    color: var(--terminal-amber);
    margin-left: 1rem;
    white-space: nowrap;
}

/* Category Navigation - Matrix */
.theme-matrix .category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 255, 65, 0.3);
}

.theme-matrix .category-tab {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
    color: var(--terminal-blue);
    background: rgba(0, 170, 255, 0.1);
    border: 2px solid var(--terminal-blue);
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.theme-matrix .category-tab::before {
    content: '[ ';
}

.theme-matrix .category-tab::after {
    content: ' ]';
}

.theme-matrix .category-tab:hover {
    background: rgba(0, 170, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
    transform: translateY(-2px);
}

.theme-matrix .category-tab.active {
    color: #000;
    background: var(--terminal-green);
    border-color: var(--terminal-green);
    box-shadow: 0 0 20px var(--terminal-green);
}

.theme-matrix .category-tab.active::before {
    content: '▶ ';
}

.theme-matrix .category-tab .tab-count {
    color: var(--terminal-amber);
    margin-left: 0.3rem;
}

.theme-matrix .category-tab.active .tab-count {
    color: #000;
}

/* Category Sections - Matrix */
.theme-matrix .category {
    margin-bottom: 2.5rem;
    animation: slideInCategory 0.6s ease-out both;
}

.category.hidden {
    display: none;
}

.theme-matrix .category:nth-child(1) { animation-delay: 0.1s; }
.theme-matrix .category:nth-child(2) { animation-delay: 0.2s; }
.theme-matrix .category:nth-child(3) { animation-delay: 0.3s; }
.theme-matrix .category:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInCategory {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.theme-matrix .category h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.1rem;
    color: var(--terminal-amber);
    text-shadow:
        2px 2px 0 #000,
        0 0 10px var(--terminal-amber),
        0 0 20px var(--terminal-amber);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px dashed var(--terminal-amber);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-matrix .category h1::before {
    content: '▶ ';
    animation: blink 1s step-end infinite;
}

/* App Cards Grid - Matrix */
.theme-matrix .app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.theme-matrix .app-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--terminal-blue);
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.app-card.hidden {
    display: none;
}

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

.theme-matrix .app-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--terminal-blue), var(--terminal-green), var(--terminal-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-matrix .app-card:hover {
    border-color: var(--terminal-green);
    box-shadow:
        0 0 20px var(--terminal-green),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.theme-matrix .app-card:hover::before {
    left: 100%;
}

.theme-matrix .app-card:hover::after {
    opacity: 1;
}

.theme-matrix .app-card h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--terminal-green);
    margin-bottom: 0.75rem;
    text-shadow: 0 0 5px var(--terminal-green);
    line-height: 1.4;
}

.theme-matrix .app-card p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 1rem;
    flex: 1;
}

/* App Tags - Matrix */
.theme-matrix .app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.theme-matrix .app-tag {
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: var(--terminal-amber);
    background: rgba(255, 176, 0, 0.15);
    border: 1px solid var(--terminal-amber);
    padding: 0.15rem 0.5rem;
    opacity: 0.8;
}

/* App Card Links - Matrix */
.theme-matrix .app-links {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.theme-matrix .app-link {
    display: inline-block;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.55rem;
    color: var(--terminal-blue);
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border: 2px solid var(--terminal-blue);
    background: rgba(0, 170, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-matrix .app-link::before {
    content: '[ ';
}

.theme-matrix .app-link::after {
    content: ' ]';
}

.theme-matrix .app-link:hover {
    background: var(--terminal-blue);
    color: #000;
    box-shadow: 0 0 20px var(--terminal-blue);
    transform: scale(1.05);
}

.theme-matrix .app-link.info-link {
    color: var(--terminal-amber);
    border-color: var(--terminal-amber);
    background: rgba(255, 176, 0, 0.1);
}

.theme-matrix .app-link.info-link:hover {
    background: var(--terminal-amber);
    color: #000;
    box-shadow: 0 0 20px var(--terminal-amber);
}

.theme-matrix .app-link.launch-link {
    color: var(--terminal-green);
    border-color: var(--terminal-green);
    background: rgba(0, 255, 65, 0.1);
}

.theme-matrix .app-link.launch-link:hover {
    background: var(--terminal-green);
    color: #000;
    box-shadow: 0 0 20px var(--terminal-green);
}

/* No Results - Matrix */
.theme-matrix .no-results {
    text-align: center;
    padding: 3rem;
    color: var(--terminal-amber);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    animation: glitch 0.5s ease-in-out;
}

.theme-matrix .no-results::before {
    content: 'ERROR 404: ';
    color: var(--terminal-green);
}

@keyframes glitch {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* Highlight - Matrix */
.theme-matrix .highlight {
    background: rgba(255, 176, 0, 0.3);
    color: var(--terminal-amber);
    padding: 0 2px;
    border-radius: 2px;
}

/* Footer - Matrix */
.theme-matrix .footer {
    margin-top: 2rem;
}

.theme-matrix .status-bar {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--terminal-green);
    padding: 1rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: var(--terminal-green);
    text-shadow: 0 0 5px var(--terminal-green);
}

.theme-matrix .separator {
    color: var(--terminal-blue);
}

/* Pixel grid overlay - Matrix */
.theme-matrix::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0, 255, 65, 0.02) 1px, rgba(0, 255, 65, 0.02) 2px);
    pointer-events: none;
    z-index: 1;
}

/* ===========================================
   PROFESSIONAL THEME
   =========================================== */
.theme-pro {
    --pro-green-light: #E8F5ED;
    --pro-green-base: #A8D5BA;
    --pro-green-medium: #7CB992;
    --pro-green-dark: #4A9B6E;
    --pro-green-accent: #2D7A4F;
    --pro-text-primary: #1A2F23;
    --pro-text-secondary: #4A5D52;
    --pro-text-muted: #7A8A80;
    --pro-bg-primary: #FAFCFB;
    --pro-bg-secondary: #F5F7F6;
    --pro-bg-card: #FFFFFF;
    --pro-border: #E2EBE6;
    --pro-shadow: rgba(45, 122, 79, 0.06);
}

body.theme-pro {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--pro-bg-primary);
    color: var(--pro-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: default;
    position: relative;
}

/* Background pattern - Professional */
.theme-pro::before {
    display: none;
}

/* Hide CRT effects - Professional */
.theme-pro .crt-overlay,
.theme-pro .scanlines,
.theme-pro .boot-sequence {
    display: none !important;
}

/* Top Navigation - Professional */
.theme-pro .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 1.5rem 0;
    margin-bottom: 0.5rem;
}

.theme-pro .nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--pro-text-primary);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.theme-pro .nav-logo:hover {
    color: var(--pro-green-dark);
}

.theme-pro .logo-symbol {
    font-size: 1.25rem;
    color: var(--pro-green-dark);
}

.theme-pro .nav-links {
    display: flex;
    gap: 1.5rem;
}

.theme-pro .nav-link {
    color: var(--pro-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.theme-pro .nav-link:hover {
    color: var(--pro-green-dark);
}

/* Hide top-nav in matrix theme */
.theme-matrix .top-nav {
    display: none;
}

/* Container - Professional */
.theme-pro .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    display: block !important;
    animation: fadeInPro 0.6s ease-out;
}

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

/* Header - Professional */
.theme-pro .header {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1rem 0 2rem 0;
    margin-bottom: 0;
    box-shadow: none;
    position: relative;
    border-bottom: 1px solid var(--pro-border);
}

.theme-pro .header::before {
    display: none;
}

.theme-pro .window-title {
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
    color: var(--pro-text-primary);
    letter-spacing: -0.01em;
    animation: none;
}

.theme-pro .title-icon {
    display: none;
}

.theme-pro .title-text::before {
    display: none;
}

/* Main Content - Professional */
.theme-pro .main-content {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem 0;
    box-shadow: none;
    min-height: 400px;
    position: relative;
}

.theme-pro .main-content::before {
    display: none;
}

/* Search Box - Professional */
.theme-pro .search-container {
    margin-bottom: 2rem;
}

.theme-pro .search-box {
    display: flex;
    align-items: center;
    background: var(--pro-bg-card);
    border: 1px solid var(--pro-border);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    transition: all 0.2s ease;
}

.theme-pro .search-box:focus-within {
    border-color: var(--pro-green-medium);
    box-shadow: 0 0 0 2px rgba(124, 185, 146, 0.1);
}

.theme-pro .search-box::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    margin-right: 0.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237A8A80'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.7;
}

.theme-pro .search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--pro-text-primary);
}

.theme-pro .search-input::placeholder {
    color: var(--pro-text-muted);
}

.theme-pro .search-results-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--pro-green-dark);
    margin-left: 1rem;
}

/* Category Navigation - Professional */
.theme-pro .category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

.theme-pro .category-tab {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pro-text-secondary);
    background: transparent;
    border: 1px solid var(--pro-border);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.theme-pro .category-tab::before,
.theme-pro .category-tab::after {
    content: none;
}

.theme-pro .category-tab:hover {
    background: var(--pro-bg-card);
    border-color: var(--pro-green-base);
    color: var(--pro-green-dark);
    transform: none;
}

.theme-pro .category-tab.active {
    background: var(--pro-green-dark);
    border-color: var(--pro-green-dark);
    color: white;
    box-shadow: none;
}

.theme-pro .category-tab .tab-count {
    color: inherit;
    opacity: 0.6;
    margin-left: 0.25rem;
    font-size: 0.8rem;
}

.theme-pro .category-tab.active .tab-count {
    opacity: 0.85;
}

/* Category Sections - Professional */
.theme-pro .category {
    margin-bottom: 3rem;
    animation: fadeInCategory 0.4s ease-out both;
}

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

.theme-pro .category:nth-child(1) { animation-delay: 0.05s; }
.theme-pro .category:nth-child(2) { animation-delay: 0.1s; }
.theme-pro .category:nth-child(3) { animation-delay: 0.15s; }
.theme-pro .category:nth-child(4) { animation-delay: 0.2s; }

.theme-pro .category h1 {
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pro-text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-pro .category h1::before {
    content: '◈';
    font-size: 0.875rem;
    color: var(--pro-green-dark);
}

/* App Cards Grid - Professional */
.theme-pro .app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.theme-pro .app-card {
    background: var(--pro-bg-card);
    border: 1px solid var(--pro-border);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 160px;
    position: relative;
}

.theme-pro .app-card::before,
.theme-pro .app-card::after {
    display: none;
}

.theme-pro .app-card:hover {
    border-color: var(--pro-green-base);
    box-shadow: 0 4px 12px rgba(45, 122, 79, 0.08);
    transform: translateY(-2px);
}

.theme-pro .app-card h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--pro-text-primary);
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.theme-pro .app-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--pro-text-secondary);
    margin-bottom: 1rem;
    flex: 1;
}

/* App Tags - Professional */
.theme-pro .app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.625rem;
}

.theme-pro .app-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--pro-text-muted);
    background: var(--pro-bg-secondary);
    border: 1px solid var(--pro-border);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

/* App Card Links - Professional */
.theme-pro .app-links {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.theme-pro .app-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.theme-pro .app-link::before,
.theme-pro .app-link::after {
    content: none;
}

.theme-pro .app-link.info-link {
    color: var(--pro-text-secondary);
    background: transparent;
    border: 1px solid var(--pro-border);
}

.theme-pro .app-link.info-link:hover {
    background: var(--pro-bg-secondary);
    border-color: var(--pro-green-base);
    color: var(--pro-green-dark);
}

.theme-pro .app-link.launch-link {
    color: var(--pro-green-dark);
    background: transparent;
    border: 1px solid var(--pro-green-dark);
}

.theme-pro .app-link.launch-link:hover {
    background: var(--pro-green-dark);
    color: white;
    transform: none;
    box-shadow: none;
}

/* No Results - Professional */
.theme-pro .no-results {
    text-align: center;
    padding: 3rem;
    color: var(--pro-text-muted);
    font-size: 0.9rem;
}

.theme-pro .no-results::before {
    content: '';
}

/* Highlight - Professional */
.theme-pro .highlight {
    background: rgba(168, 213, 186, 0.35);
    color: var(--pro-green-accent);
    padding: 0 3px;
    border-radius: 2px;
}

/* Footer - Professional */
.theme-pro .footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pro-border);
}

.theme-pro .status-bar {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    color: var(--pro-text-muted);
}

.theme-pro .separator {
    color: var(--pro-border);
}

.theme-pro .blink {
    display: none;
}

/* ===========================================
   RESPONSIVE - Matrix
   =========================================== */
@media (max-width: 768px) {
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 42px;
        height: 42px;
    }

    .toggle-icon {
        font-size: 1.2rem;
    }

    .theme-matrix .container {
        padding: 1rem;
    }

    .theme-matrix .window-title {
        font-size: 0.7rem;
    }

    .theme-matrix .search-box {
        padding: 0.4rem 0.6rem;
    }

    .theme-matrix .search-box::before {
        font-size: 0.5rem;
        content: '>';
    }

    .theme-matrix .search-input {
        font-size: 1.1rem;
    }

    .theme-matrix .search-results-count {
        font-size: 0.5rem;
    }

    .theme-matrix .category-nav {
        gap: 0.4rem;
    }

    .theme-matrix .category-tab {
        font-size: 0.5rem;
        padding: 0.5rem 0.6rem;
    }

    .theme-matrix .category h1 {
        font-size: 0.85rem;
    }

    .theme-matrix .app-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .theme-matrix .app-card {
        min-height: 150px;
        padding: 1rem;
    }

    .theme-matrix .app-card h2 {
        font-size: 0.7rem;
    }

    .theme-matrix .app-card p {
        font-size: 1rem;
    }

    .theme-matrix .app-links {
        gap: 0.5rem;
    }

    .theme-matrix .app-link {
        font-size: 0.5rem;
        padding: 0.4rem 0.6rem;
    }

    .theme-matrix .status-bar {
        font-size: 0.5rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .theme-matrix .no-results {
        font-size: 0.6rem;
        padding: 2rem 1rem;
    }
}

/* ===========================================
   RESPONSIVE - Professional
   =========================================== */
@media (max-width: 768px) {
    .theme-pro .container {
        padding: 1rem;
    }

    .theme-pro .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding-bottom: 1rem;
    }

    .theme-pro .nav-links {
        width: 100%;
    }

    .theme-pro .nav-link {
        font-size: 0.85rem;
    }

    .theme-pro .header {
        padding: 0.75rem 0 1.5rem 0;
    }

    .theme-pro .window-title {
        font-size: 1.25rem;
    }

    .theme-pro .main-content {
        padding: 1.5rem 0;
    }

    .theme-pro .search-box {
        padding: 0.75rem 1rem;
    }

    .theme-pro .category-nav {
        gap: 0.375rem;
    }

    .theme-pro .category-tab {
        font-size: 0.8rem;
        padding: 0.45rem 0.875rem;
    }

    .theme-pro .category h1 {
        font-size: 0.7rem;
    }

    .theme-pro .app-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .theme-pro .app-card {
        padding: 1rem;
        min-height: 140px;
    }

    .theme-pro .app-card h2 {
        font-size: 0.95rem;
    }

    .theme-pro .app-link {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }

    .theme-pro .status-bar {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}

/* ===========================================
   THEME TRANSITION
   =========================================== */
body,
.container,
.header,
.main-content,
.search-box,
.category-tab,
.app-card,
.app-link,
.status-bar {
    transition:
        background-color 0.4s ease,
        border-color 0.4s ease,
        color 0.4s ease,
        box-shadow 0.4s ease;
}
