/*
Theme Name: MacFiles
Version: 26.1
*/

/* ================================
   CSS VARIABLES
   ================================ */
:root {
    --header-height: 60px;
    --sidebar-width: 240px;

    --bg-body: #f5f5f7;
    --bg-header: #ffffff;
    --bg-sidebar: #1e1e1e;
    --text-sidebar: #a0a0a0;
    
    --bg-card: #ffffff;
    --text-main: #333333;
    --text-muted: #888888;
    --border-color: #e0e0e0;
    
    --blue-color: #007aff;
    --blue-hover: #005bb5;
    
    --shadow-card: 0 6px 18px rgba(18,21,26,0.06);
    --shadow-hover: 0 18px 40px rgba(18,21,26,0.09);

    --title-weight: 600;
}

:root {
    --card-gradient-fallback: linear-gradient(180deg, var(--bg-card) 0%, rgba(0,0,0,0.02) 100%);
}

/* ================================
   DARK MODE
   ================================ */
[data-theme="dark"] {
    --bg-body: #121212;
    --bg-header: #1c1c1e;
    --bg-sidebar: #141414;
    --text-sidebar: #888888;

    --bg-card: #1c1c1e;
    --text-main: #e5e5e5;
    --text-muted: #a0a0a0;
    --border-color: #2c2c2e;

    --shadow-card: 0 4px 10px rgba(0,0,0,0.2);
    --shadow-hover: 0 12px 30px rgba(0,0,0,0.4);
}

/* ================================
   ACCESSIBILITY
   ================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    background: var(--blue-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    width: auto;
    height: auto;
    clip: auto;
    white-space: normal;
    overflow: visible;
}

/* ================================
   RESET & BASE
   ================================ */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-top: var(--header-height);
    transition: background-color 0.3s, color 0.3s;
}

/* ================================
   HEADER
   ================================ */
.cm-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: background 0.3s, border 0.3s;
}

.cm-header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* Logo */
.cm-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cm-logo-icon {
    flex-shrink: 0;
    transition: stroke 0.3s;
}

.cm-brand {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    transition: color 0.3s;
    white-space: nowrap;
}

.cm-tagline {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Header Right */
.header-right-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ================================
   SEARCH BAR
   ================================ */
.cm-search {
    position: relative;
}

.cm-search .search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.cm-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    transition: color 0.2s;
}

.cm-search .search-input {
    background: var(--bg-body);
    border: 1.5px solid transparent;
    color: var(--text-main);
    padding: 9px 16px 9px 36px;
    border-radius: 10px;
    width: 220px;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
}

.cm-search .search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.cm-search .search-input:focus {
    background: var(--bg-card);
    border-color: var(--blue-color);
    width: 280px;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Mobile Search Button */
.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-main);
    border-radius: 50%;
    transition: background 0.2s;
}

.mobile-search-btn:hover {
    background: rgba(128, 128, 128, 0.1);
}

/* ================================
   DARK MODE TOGGLE
   ================================ */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s, transform 0.3s;
}

.theme-toggle-btn:hover {
    background: rgba(128, 128, 128, 0.1);
}

.theme-toggle-btn:active {
    transform: rotate(30deg);
}

[data-theme="light"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }

/* ================================
   MOBILE MENU BUTTON
   ================================ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-main);
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: rgba(128, 128, 128, 0.1);
}

/* ================================
   SIDEBAR BACKDROP
   ================================ */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* ================================
   SIDEBAR / LAYOUT
   ================================ */
.cm-layout {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.cm-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    color: var(--text-sidebar);
    position: fixed;
    top: var(--header-height);
    left: 0;
    height: calc(100% - var(--header-height));
    overflow-y: auto;
    padding: 16px 10px;
    flex-shrink: 0;
    transition: background 0.3s, transform 0.3s ease;
    z-index: 2000;
}

/* Custom Scrollbar */
.cm-sidebar::-webkit-scrollbar { width: 4px; }
.cm-sidebar::-webkit-scrollbar-track { background: transparent; }
.cm-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.cm-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

.cm-main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 0;
    background-color: var(--bg-body);
    transition: background 0.3s;
}

/* ================================
   NAV MENU
   ================================ */
.nav-menu ul { list-style: none; padding: 0; margin: 0; }

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-sidebar);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-menu li a svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.nav-menu li a span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-menu li a:hover svg { opacity: 1; }

.nav-menu li.current-menu-item a {
    background: var(--blue-color);
    color: #fff;
    font-weight: 600;
}

.nav-menu li.current-menu-item a svg { opacity: 1; }

/* Category Count */
.cat-count {
    flex: none !important;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
}

.nav-menu li.current-menu-item .cat-count {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.menu-label {
    padding: 20px 14px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1.2px;
    list-style: none;
}

/* Sidebar Widgets */
.sidebar-widgets-area {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-widgets-area .widget { margin-bottom: 30px; }

.sidebar-widgets-area .widget-title {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* ================================
   COMPACT CARD SLIDER
   ================================ */
.slider-section {
    padding: 20px 40px 10px;
}

.featured-slider {
    width: 100%;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.featured-slider .swiper-slide {
    height: auto;
}

.slide-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 30px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    min-height: 140px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.slide-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: opacity 0.25s;
}

.slide-card:hover::before { opacity: 1; }
.slide-card:hover { transform: scale(1.01); }

.slide-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease;
}

.slide-card:hover .slide-card-icon { transform: scale(1.05); }

.slide-card-info {
    flex: 1;
    min-width: 0;
}

.slide-card-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

.slide-card-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.slide-card-desc {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-card-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #fff;
    transition: background 0.2s;
}

.slide-card:hover .slide-card-arrow { background: rgba(255, 255, 255, 0.25); }

/* Slider Pagination */
.featured-slider .swiper-pagination {
    position: relative;
    bottom: auto !important;
    margin-top: 14px;
    text-align: center;
}

.featured-slider .swiper-pagination-bullet {
    width: 24px !important;
    height: 3px !important;
    border-radius: 2px !important;
    background: var(--border-color) !important;
    opacity: 1 !important;
    margin: 0 3px !important;
    transition: all 0.3s ease !important;
}

.featured-slider .swiper-pagination-bullet-active {
    width: 36px !important;
    background: var(--blue-color) !important;
}

/* ================================
   SECTION HEADER
   ================================ */
.section-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 10px 0 28px 0;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.section-header-icon {
    font-size: 22px;
    line-height: 1;
}

.section-heading {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.section-header-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--border-color), transparent);
    border-radius: 2px;
}

/* ================================
   CONTAINER
   ================================ */
.container { max-width: 100%; margin: 0; padding: 30px 40px; }

/* ================================
   APPS GRID
   ================================ */
.apps-grid { display: grid; gap: 25px; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 768px)  { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .apps-grid { grid-template-columns: repeat(3, 1fr); max-width: 1400px; margin: 0 auto; } }

/* ================================
   APP CARD
   ================================ */
.apps-grid .app-card {
    background: var(--card-gradient-fallback);
    background: linear-gradient(180deg, var(--bg-card) 0%, color-mix(in srgb, var(--bg-card) 96%, transparent 4%) 100%);
    padding: 16px 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
    position: relative;
}

.apps-grid .app-card::after {
    content: "";
    position: absolute;
    top: 8px; left: 8px;
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(0,0,0,0.02));
    pointer-events: none;
    mix-blend-mode: overlay;
}

.apps-grid .app-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: color-mix(in srgb, var(--blue-color) 18%, var(--border-color));
}

.apps-grid .app-card:focus-within {
    outline: none;
    box-shadow: 0 12px 36px rgba(0,122,255,0.06);
    border-color: var(--blue-color);
}

/* App Icon */
.apps-grid .app-card .app-icon {
    width: 72px; height: 72px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 10px 22px rgba(24,28,33,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.02));
    border: 1px solid rgba(0,0,0,0.03);
}

.apps-grid .app-card .app-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border: 1px dashed var(--border-color);
}

/* App Details */
.apps-grid .app-card .app-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    flex: 1 1 auto;
    min-width: 0;
}

/* App Title */
.apps-grid .app-card .app-title {
    font-weight: var(--title-weight);
    font-size: 15.5px;
    line-height: 1.28;
    color: var(--text-main);
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-height: calc(1.28em * 2);
    margin: 0;
    letter-spacing: -0.2px;
    transition: color 0.2s ease;
}

.apps-grid .app-card .app-title:hover,
.apps-grid .app-card .app-title:focus {
    text-decoration: none !important;
    color: var(--blue-color);
}

/* App Meta */
.apps-grid .app-card .app-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.2px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
}

/* GET Button */
.apps-grid .app-card .btn-view {
    margin-left: 16px;
    background: linear-gradient(180deg, var(--blue-color), var(--blue-hover));
    color: #fff;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0,122,255,0.16);
    border: none;
    flex-shrink: 0;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.apps-grid .app-card .btn-view:hover,
.apps-grid .app-card .btn-view:focus {
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0,122,255,0.22);
}

.apps-grid .app-card > .btn-view { margin-left: auto; }

/* Safety */
.apps-grid .app-card .app-title,
.apps-grid .app-card .app-meta { visibility: visible !important; opacity: 1 !important; }
.apps-grid .app-card > .app-details { flex-direction: column !important; }
.apps-grid .app-card > .app-details .app-title { min-width: 0 !important; }

/* Fade-in for AJAX loaded cards */
.fade-in-card {
    animation: fadeInUp 0.35s ease both;
}

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

/* ================================
   INFINITE SCROLL
   ================================ */
.infinite-loader-wrap {
    display: none;
    text-align: center;
    padding: 3rem 0;
}

.loader-spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--blue-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 0.7s linear infinite;
}

.end-of-posts-msg {
    display: none;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 2rem 0;
    margin: 0;
}

/* ================================
   NO POSTS
   ================================ */
.no-posts-found {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

.no-posts-found svg { margin-bottom: 16px; opacity: 0.5; }
.no-posts-found p { margin: 0; font-size: 16px; font-weight: 500; }

/* ================================
   SINGLE HERO
   ================================ */
.single-hero-wrapper {
    width: 100%; min-height: 350px; border-radius: 20px; overflow: hidden; margin-bottom: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); position: relative; padding: 50px; color: white; display: flex; align-items: center;
}
.slide-text { flex-grow: 1; }
.slide-icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); object-fit: cover; flex-shrink: 0; margin-right: 40px; }
.slide-text h1 { font-size: 40px; margin: 0 0 15px 0; font-weight: 800; color: white; }
.slide-text p { font-size: 17px; line-height: 1.6; opacity: 0.9; margin-bottom: 25px; max-width: 600px; color: rgba(255,255,255,0.9); }
.btn-slide-view { display: inline-block; background: white; color: #333; padding: 12px 35px; border-radius: 30px; font-weight: 700; text-decoration: none; }
.btn-circle-arrow { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; color: white; background: rgba(255,255,255,0.1); }

/* ================================
   SINGLE PAGE CONTAINERS
   ================================ */
.single-hero-wrapper, .app-description, .info-boxes, .screenshots-gallery, .download-section, .comments-wrapper, .cm-breadcrumbs { 
    max-width: 1100px; margin-left: auto; margin-right: auto; 
}

/* ================================
   BREADCRUMBS
   ================================ */
.cm-breadcrumbs { padding: 0 5px; margin-bottom: 20px !important; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.cm-breadcrumbs a { text-decoration: none; color: var(--text-muted); transition: color 0.2s; }
.cm-breadcrumbs a:hover { color: var(--blue-color); }
.cm-breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }
.cm-breadcrumbs .current { color: var(--text-main); font-weight: 600; }

/* ================================
   INFO BOXES & SECTIONS
   ================================ */
.info-box { background: var(--bg-card); padding: 20px; border-radius: 16px; text-align: center; box-shadow: var(--shadow-card); transition: background 0.3s; }
.info-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 8px; }
.info-value { font-weight: 700; font-size: 15px; color: var(--text-main); }
.info-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-bottom: 50px; }
.screenshots-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 50px; }
.screenshot-img { width: 100%; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.download-section { background: var(--bg-card); padding: 50px; border-radius: 24px; text-align: center; margin-top: 50px; box-shadow: var(--shadow-card); transition: background 0.3s; }
.btn-download-large { background: var(--blue-color); color: white; padding: 18px 50px; border-radius: 50px; text-decoration: none; font-weight: 700; display: inline-block; box-shadow: 0 10px 30px rgba(0,122,255,0.3); }

/* ================================
   COMMENTS
   ================================ */
.comments-wrapper { max-width: 800px; margin: 60px auto; }
.comments-area { background: var(--bg-card); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-card); transition: background 0.3s; }
.comment-list li.comment { margin-bottom: 30px; border-bottom: 1px solid var(--border-color); padding-bottom: 30px; list-style: none; }
.fn { font-weight: 700; font-size: 16px; color: var(--text-main); }
.comment-body { color: var(--text-main); }
.comment-form input, .comment-form textarea { width: 100%; padding: 15px; border: 2px solid var(--bg-body); background: var(--bg-body); color: var(--text-main); border-radius: 12px; margin-bottom: 15px; }

/* ================================
   FOOTER
   ================================ */
footer { background: var(--bg-card); border-top: 1px solid var(--border-color); transition: background 0.3s; }

/* ================================
   SORT DROPDOWN
   ================================ */
.sort-dropdown-wrapper { position: relative; display: inline-block; }
.custom-sort-select { appearance: none; -webkit-appearance: none; background-color: var(--bg-body); color: var(--text-main); border: 1px solid var(--border-color); padding: 10px 35px 10px 15px; font-size: 13px; font-weight: 600; border-radius: 12px; cursor: pointer; outline: none; transition: all 0.2s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.custom-sort-select:hover { border-color: var(--blue-color); background-color: var(--bg-card); }
.custom-sort-select:focus { border-color: var(--blue-color); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15); }
.select-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-muted); }

/* ================================
   RESPONSIVE — TABLET
   ================================ */
@media (max-width: 1024px) {
    .apps-grid { gap: 20px; }
    .apps-grid .app-card .app-icon { width: 64px; height: 64px; }
    .apps-grid .app-card .app-title { font-size: 15px; }
    .single-hero-wrapper { padding: 40px; min-height: auto; flex-direction: column; text-align: center; }
    .single-hero-wrapper .slide-icon { margin-right: 0; margin-bottom: 18px; }
}

/* ================================
   RESPONSIVE — MOBILE
   ================================ */
@media (max-width: 768px) {
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Search dropdown on mobile */
    .cm-search {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-header);
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .cm-search.mobile-active { display: block; }
    .cm-search.mobile-active .search-input { width: 100%; }
    
    .cm-tagline { display: none; }
    .cm-logo-icon { width: 24px; height: 24px; }
    
    /* Sidebar */
    .cm-sidebar { transform: translateX(-100%); }
    .cm-sidebar.open { transform: translateX(0); }
    .cm-main { margin-left: 0; width: 100%; }
    
    /* Container */
    .container { padding: 20px 16px; }
    
    /* Slider */
    .slider-section { padding: 16px 16px 8px; }
    .slide-card { padding: 18px 20px; gap: 14px; min-height: 110px; }
    .slide-card-icon { width: 56px; height: 56px; border-radius: 14px; }
    .slide-card-title { font-size: 18px; }
    .slide-card-desc { font-size: 12px; }
    .slide-card-arrow { width: 30px; height: 30px; }
    
    /* Grid */
    .apps-grid { grid-template-columns: 1fr; gap: 18px; padding-bottom: 10px; }
    .apps-grid .app-card { padding: 14px; gap: 12px; border-radius: 12px; }
    .apps-grid .app-card .app-icon { width: 56px; height: 56px; }
    .apps-grid .app-card .btn-view { padding: 7px 12px; font-size: 13px; margin-left: 12px; }
    
    .section-heading { font-size: 22px; }
}

/* ================================
   RESPONSIVE — SMALL PHONE
   ================================ */
@media (max-width: 480px) {
    .cm-brand { font-size: 16px; }
    .cm-header { padding: 0 14px; }
    
    .slide-card { padding: 14px 16px; gap: 12px; min-height: 95px; }
    .slide-card-icon { width: 48px; height: 48px; border-radius: 12px; }
    .slide-card-title { font-size: 16px; }
    .slide-card-badge { font-size: 9px; padding: 2px 8px; }
    .slide-card-desc { font-size: 11px; }
    
    .section-heading { font-size: 20px; }
    .section-header-icon { font-size: 18px; }
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes spin { to { transform: rotate(360deg); } }