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

.app-icon img {
    max-width: 60px;
    border-radius: 10px;
    border: 1px solid #fff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f172a;
    background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    color: #e2e8f0;
}

.container {
    max-width: 900px;
    width: 100%;
    background: #111827;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    border: 1px solid #1f2937;
    border-bottom: 1px solid #374151;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 0 20px rgba(148, 163, 184, 0.3);
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.2) inset;
    background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subtitle h4 {
    display: flex;
    align-items: center;
}

h4 img {
    margin-top: 5px
}

.info-box {
    background: #0b1220;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #3b82f6;
    border: 1px solid #1f2937;
    text-align: center;
}

.info-box p {
    line-height: 1.6;
    color: #cbd5e1;
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-block;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    flex: 1;
    border: none;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #111827;
    color: #94a3b8;
    flex: 1;
    border: 1px solid #334155;
}

.btn-secondary:hover {
    background: #1f2937;
    color: #e2e8f0;
    transform: translateY(-2px);
    border-color: #475569;
}

.install-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-install {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    flex: 1;
    font-size: 1.1rem;
    padding: 16px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.btn-web {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.5);
}

.btn-web:hover {
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.5);
}

.btn-install:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.catalog-item {
    background: #0b1220;
    border: 2px solid #1f2937;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.catalog-item:hover {
    background: #0f172a;
    border-color: #334155;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.catalog-item.selected {
    background: #0b1a2a;
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.catalog-item input[type="checkbox"] {
    display: none;
}

.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.catalog-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #475569;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: #0b1220;
}

.catalog-item.selected .checkbox-custom {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.catalog-item.selected .checkbox-custom::after {
    opacity: 1;
}

.catalog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
}

.catalog-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.4;
}

.counter {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding: 12px;
    background: #0b1220;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid #1f2937;
    color: #e2e8f0;
}

.counter span {
    color: #3b82f6;
    font-size: 1.3rem;
    font-weight: 700;
}

.install-url {
    background: #0b1220;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #7dd3fc;
    border: 1px solid #1f2937;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

h4 {
    margin-top: 10px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }

    .subtitle {
        margin-bottom: 15px;
    }

    h1 {
        font-size: 20px;
        text-align: left;
        margin-left: 10px;
        margin-bottom: 15px;
    }

    h4 {
        margin-top: 5px;
        margin-bottom: 15px;
    }

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

    p {
        line-height: 1.3em;
    }

    .btn {
        padding: 4px 5px;
    }
}