/* ====== Лейаут (fullscreen/centered) ====== */
.apps-viewport {
    position: relative;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 12px;
    overflow: hidden;
}

/* --- ЛОГОТО: размазано под всичко --- */
.apps-viewport::before {
    content: "";
    position: absolute;
    inset: -24px;
    background-image: var(--bg-url);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: blur(0px);
    transform: scale(1.08);
    z-index: 0;
}

/* --- ГРАДИЕНТЕН ВОАЛ: твоя градиент, леко прозрачен --- */
.apps-viewport::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: 
        radial-gradient(1200px 600px at 20% -10%,rgba(99, 102, 241, 0.25),transparent 60%),
        radial-gradient(1000px 600px at 110% 10%,rgba(236, 72, 153, 0.22),transparent 60%),
        linear-gradient(180deg,rgba(247, 248, 252, 0.92) 0%,rgba(238, 241, 247, 0.92) 100%);
}

/* Съдържанието върви над ефектите */
.apps-viewport > .container-fluid {
    position: relative;
    z-index: 2;
}

/* Заглавие/подзаглавие */
.apps-header h1 {
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 0.25rem;
}
.apps-header p {
    margin: 0 0 1.75rem 0;
    color: #56607a;
}

/* ====== Секция/хединг ====== */
.apps-section {
    width: 100%;
    max-width: 1600px;
    margin: 1rem auto 1.75rem;
}
.apps-section-title {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.4px;
    color: #1f2937;
    margin: 0.25rem 0 1rem;
    padding-left: 0.25rem;
    text-transform: uppercase;
}

/* ====== Картички – macOS ап икони ====== */
.app-tile {
    display: inline-block;
    text-align: center;
    text-decoration: none !important;
    color: inherit;
    padding: 0;
    margin: 0.4rem 0;
}

.icon-box {
    width: 96px;
    height: 96px;
    margin: 0 auto 0.55rem;
    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
    position: relative;
    overflow: hidden;
}

/* Гланц/блясък */
.icon-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,rgba(255, 255, 255, 0.35),rgba(255, 255, 255, 0) 45%);
    border-radius: inherit;
    pointer-events: none;
}

/* Икона вътре */
.apps-viewport .icon-fa {
    font-size: 36px !important;
    color: #fff;
}

/* Етикет под иконата */
.app-label {
    font-size: 14px;
    line-height: 1.25;
    min-height: 2.4em;
    color: #1f2937;
    word-break: break-word;
}

/* Hover “подскок” + цветен glow */
.icon-box {
    --accent-rgb: 99, 102, 241;
}
.app-tile:hover .icon-box {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.25),
        0 8px 22px rgba(var(--accent-rgb), 0.35),
        0 18px 46px rgba(var(--accent-rgb), 0.28), 0 16px 36px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    filter: saturate(1.06);
}

/* ====== Цветни градиенти за иконите ====== */
.icon-box.g1 {
    background-image: linear-gradient(135deg, #60a5fa, #2563eb);
}
.icon-box.g1 {
    --accent-rgb: 37, 99, 235;
}
.icon-box.g2 {
    background-image: linear-gradient(135deg, #a78bfa, #7c3aed);
}
.icon-box.g2 {
    --accent-rgb: 124, 58, 237;
}
.icon-box.g3 {
    background-image: linear-gradient(135deg, #fb7185, #ef4444);
}
.icon-box.g3 {
    --accent-rgb: 239, 68, 68;
}
.icon-box.g4 {
    background-image: linear-gradient(135deg, #f59e0b, #d97706);
}
.icon-box.g4 {
    --accent-rgb: 217, 119, 6;
}
.icon-box.g5 {
    background-image: linear-gradient(135deg, #34d399, #059669);
}
.icon-box.g5 {
    --accent-rgb: 5, 150, 105;
}
.icon-box.g6 {
    background-image: linear-gradient(135deg, #22d3ee, #0ea5e9);
}
.icon-box.g6 {
    --accent-rgb: 14, 165, 233;
}
.icon-box.g7 {
    background-image: linear-gradient(135deg, #f472b6, #db2777);
}
.icon-box.g7 {
    --accent-rgb: 219, 39, 119;
}
.icon-box.g8 {
    background-image: linear-gradient(135deg, #93c5fd, #6366f1);
}
.icon-box.g8 {
    --accent-rgb: 99, 102, 241;
}
