.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
body.dark .glass-card {
    background: rgba(28, 28, 28, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}
.glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.08);
}
body.dark .glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
}

.spring-btn {
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.2s;
}
.spring-btn:active {
    transform: scale(0.97) translateY(1px);
}

body.dark .glass-card h4 {
    color: #ffffff !important;
}

body.dark .glass-card p {
    color: #cbd5e1 !important;
    /* light slate color */
}

.hero-glass {
    /* Glassmorphism Effect - Matched to Nav Bar */
    background-image: linear-gradient(144.46deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(21px);
    -webkit-backdrop-filter: blur(21px);
    border: 1px solid #151515;
}

body.dark .hero-glass {
    background-image: linear-gradient(144.46deg, rgba(30, 41, 59, 0.6) 0%, rgba(30, 41, 59, 0.2) 100%);
    border: 1px solid var(--border);
}

body.dark section h1,
body.dark section h3,
body.dark section button {
    color: #ffffff !important;
}

body.dark section p {
    color: #cbd5e1 !important;
}

.toolkit-content {
    position: relative;
    z-index: 1;
    padding-top: 9rem;
    /* Space for the collapsed absolute nav */
}

.main-container {
    padding-top: 0;
    min-height: auto;
}

/* =========================================
   App Store Listing Modal
   ========================================= */
.as-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}
.as-overlay.visible { opacity: 1; pointer-events: auto; }

.as-panel {
    width: 100%;
    max-width: 860px;
    background: #1c1c1e;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.as-overlay.visible .as-panel { transform: translateX(0); }

.as-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.as-panel-title {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}
.as-close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.as-close-btn:hover { background: rgba(255,255,255,0.2); }

.as-body { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; }

.as-section-title {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.as-list { display: flex; flex-direction: column; }

.as-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.as-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 0.75rem;
    cursor: pointer;
    border-right: 1px solid rgba(255,255,255,0.07);
    transition: background 0.18s;
}
.as-item:last-child { border-right: none; }
.as-item:hover { background: rgba(255,255,255,0.04); }

.as-item-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}
.as-item-info { flex: 1; min-width: 0; }
.as-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.as-item-desc {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.1rem;
}
.as-item-iap {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.25);
    margin-top: 0.4rem;
}
.as-item-btn {
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #2997ff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.28rem 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.as-item-btn:hover { background: rgba(41,151,255,0.18); }

/* =========================================
   App Detail Modal
   ========================================= */
.asd-overlay {
    position: fixed;
    inset: 0;
    background: #1c1c1e;
    z-index: 3100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.asd-overlay.visible { opacity: 1; pointer-events: auto; }

.asd-panel { display: flex; flex-direction: column; height: 100%; }

.asd-topbar {
    padding: 1.2rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.asd-back-btn {
    background: none;
    border: none;
    color: #2997ff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.asd-body { flex: 1; overflow-y: auto; padding: 2rem; max-width: 900px; }

.asd-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1.5rem;
}
.asd-icon {
    width: 110px;
    height: 110px;
    border-radius: 22px;
    object-fit: cover;
    flex-shrink: 0;
}
.asd-name {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}
.asd-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.asd-price-btn {
    background: #2997ff;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1.4rem;
    border-radius: 20px;
    cursor: pointer;
}

.asd-stats {
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1.75rem;
}
.asd-stat {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.asd-stat:last-child { border-right: none; }
.asd-stat-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 0.3rem;
}
.asd-stat-value { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.7); }
.asd-stat-sub { font-size: 0.65rem; color: rgba(255,255,255,0.3); margin-top: 0.15rem; }

.asd-screenshots {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 1.75rem;
    scrollbar-width: none;
}
.asd-screenshots::-webkit-scrollbar { display: none; }
.asd-screenshot { height: 240px; border-radius: 10px; flex-shrink: 0; object-fit: cover; }

.asd-platform {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 1rem;
}
.asd-description {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    max-width: 660px;
    margin-bottom: 2rem;
}
.asd-dev-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.25rem;
}
.asd-dev-link { font-size: 0.88rem; color: #2997ff; cursor: pointer; }