/* =====================================================
   RESET (PAGE-LEVEL ONLY)
===================================================== */
* {
    box-sizing: border-box;
}

/* IMPORTANT:
   DO NOT style body background here
   (handled globally in theme.php)
*/

/* =====================================================
   HERO + WAVE BACKGROUND
===================================================== */
.app-hero {
    position: relative;
    padding-bottom: 20px;
    background: linear-gradient(
        135deg,
        #b9a8ff 0%,   /* light purple */
        #7b5cff 45%,  /* normal purple */
        #4a2fbf 100%  /* dark purple */
    );
    overflow: hidden;
}


/* WAVE CUT */
.app-hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 140px;
    background: #f4f6fa;
    clip-path: ellipse(75% 100% at 50% 100%);
    z-index: 1;
}

/* Keep hero content above wave */
.app-hero > * {
    position: relative;
    z-index: 2;
}

/* =====================================================
   HERO SLIDER
===================================================== */
.hero-slider-wrap {
    padding: 64px 16px 0; /* space for floating actions */
}



.hero-slider {
    position: relative;
    height: 210px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(0,0,0,.25);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .7s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   QUICK ACTIONS
===================================================== */
.quick-actions {
    margin-top: 20px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.qa-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 8px;
    text-align: center;
    font-size: 12px;
    color: #222;
    text-decoration: none;
    position: relative;
}

.qa-card small {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 9px;
    background: #ff5b5b;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
}

.qa-card.disabled {
    opacity: .6;
    pointer-events: none;
}

.qa-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 6px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.qa-icon.green { background: #e6f7ec; color: #2ecc71; }
.qa-icon.lime  { background: #f1fbe6; color: #7cb305; }
.qa-icon.blue  { background: #e6efff; color: #2979ff; }
.qa-icon.gray  { background: #eeeeee; color: #888888; }

/* =====================================================
   MAIN CONTENT
===================================================== */
.app-main {
    padding: 16px;
    padding-bottom: 90px; /* space for footer / bottom nav */
}

.app-section-title {
    font-size: 18px;
    margin-bottom: 12px;
}

/* =====================================================
   PRODUCT GRID (APP SAFE)
===================================================== */
.app-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

/* =====================================================
   EMPTY STATE
===================================================== */
.empty-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #777777;
}

.qa-svg {
    width: 16px;
    height: 16px;
}

.qa-card.coming-soon {
    opacity: 1;
    cursor: default;
}

.qa-card.coming-soon small {
    font-size: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}
