body {
    font-family: 'Anuphan', sans-serif;
    background-color: #f8fafc;
}

.wu-gradient {
    background: linear-gradient(135deg, #f97316 0%, #7e22ce 100%);
}

/* Desktop card hover */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.service-card { transition: all 0.3s ease; cursor: pointer; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.modal-overlay { transition: opacity 0.3s ease; }
.modal-content { transition: transform 0.3s ease, opacity 0.3s ease; }
.hidden-modal { opacity: 0; pointer-events: none; }
.hidden-modal .modal-content { transform: scale(0.95); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.icon-option { transition: all 0.2s ease; }
.icon-option.selected { background-color: #f97316; color: white; border-color: #f97316; }

.bg-dots {
    background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}
.dark .bg-dots {
    background-image: radial-gradient(rgba(248, 250, 252, 0.05) 1px, transparent 1px);
}

/* =============================================
   MOBILE NAV MENU
   ============================================= */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
}
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* =============================================
   CATEGORY FILTERS — horizontal scroll on mobile
   ============================================= */
#category-filters {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    padding-bottom: 4px;
}
#category-filters::-webkit-scrollbar { display: none; }

/* =============================================
   iOS-STYLE APP ICON GRID
   ============================================= */
.app-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
    padding: 4px 0;
}

/* Each app icon cell */
.app-icon-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-decoration: none;
}

/* The squircle icon */
.app-icon-squircle {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 22.5%;          /* iOS squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Spring bounce on release */
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.18s ease;
}

/* Glossy top-shine overlay (iOS look) */
.app-icon-squircle::after {
    content: '';
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    height: 52%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.0)  100%
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

/* Subtle inner highlight ring */
.app-icon-squircle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
                inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    z-index: 2;
    pointer-events: none;
}

/* Icons sit above the overlays */
.app-icon-squircle > * {
    position: relative;
    z-index: 3;
}

/* Spring press feedback */
.app-icon-cell:active .app-icon-squircle {
    transform: scale(0.84);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

/* Label under icon */
.app-icon-label {
    font-size: 10.5px;
    font-weight: 500;
    color: #334155;
    text-align: center;
    line-height: 1.35;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    letter-spacing: -0.01em;
}

.dark .app-icon-label {
    color: #cbd5e1;
}

/* =============================================
   SETTINGS TAB BAR (mobile horizontal scroll)
   ============================================= */
.settings-tab-bar {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.settings-tab-bar::-webkit-scrollbar { display: none; }

/* =============================================
   SAFE AREA (iPhone notch / home bar)
   ============================================= */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body { padding-bottom: env(safe-area-inset-bottom); }
    nav  { padding-top: env(safe-area-inset-top); }
}

/* Category section on mobile */
.mobile-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-section-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.dark .mobile-section-header h3 {
    color: #f1f5f9;
}

.mobile-section-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
