.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mt-5 {
    margin-top: 5rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mb-5 {
    margin-bottom: 5rem;
}

.pt-0 {
    padding-top: 0;
}

.pt-1 {
    padding-top: 1rem;
}

.pt-2 {
    padding-top: 2rem;
}

.pt-3 {
    padding-top: 3rem;
}

.pt-4 {
    padding-top: 4rem;
}

.pt-5 {
    padding-top: 5rem;
}

.pb-0 {
    padding-bottom: 0;
}

.pb-1 {
    padding-bottom: 1rem;
}

.pb-2 {
    padding-bottom: 2rem;
}

.pb-3 {
    padding-bottom: 3rem;
}

.pb-4 {
    padding-bottom: 4rem;
}

.pb-5 {
    padding-bottom: 5rem;
}

.hide {
    display: none!important;
}

.ft-600 {
    font-weight: 600;
}

.ft-s-2-5 {
    font-size: 2.5rem;
}

.hero-card {
    background: linear-gradient(to right, #46e5d3, #818cf8);
    color: white;
    border: none;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-card-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.hero-card-title {
    font-size: 3rem;
    margin: 1rem 0;
    line-height: 1.1;
}

.hero-card-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 500px;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-side-featured {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-side-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.hero-side-icon {
    width: 50px;
    height: 50px;
}

.hero-side-title {
    font-size: 1rem;
}

.hero-side-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.category-card {
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.category-icon {
    font-size: 2rem;
    max-width: 65px;
}

.trending-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.trending-card {
    padding: 0;
}

.trending-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.trending-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.trending-list {
    display: flex;
    flex-direction: column;
}

.trending-app {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.trending-app-index {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 30px;
}

.trending-app-icon {
    width: 48px;
    height: 48px;
}

.trending-app-info {
    flex: 1;
}

.trending-app-info h4 {
    font-weight: 600;
}

.trending-app-category {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trending-app-rating {
    font-weight: 600;
    color: var(--primary);
    width: 43px;
}

.category-wraper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    height: 215px;
}

.cat-icon {
    /*font-size: 3rem;*/
    /*background: #e0e7ff;*/
    padding: 1rem;
    border-radius: 50%;
}

.cat-icon img {
    max-width: 65px;
}

.cat-title {
    font-weight: 600;
    font-size: 1.1rem;
    flex-grow: 1;
}

.detail-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.detail-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.detail-meta {
    flex: 1;
}

.detail-meta h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.detail-tag {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.detail-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.detail-rating {
    display: flex;
    align-items: center;
    color: #eab308;
    font-weight: 700;
}

/* Updated Scrolling Gallery */
.gallery-container {
    margin: 2rem 0;
    position: relative;
    /* Ensure buttons can be positioned relative to this */
}

.gallery-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    /* Add padding to top/bottom so shadows aren't cut off */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide standard scrollbar for cleaner look with buttons */
    scroll-behavior: smooth;
}

/* Custom scrollbar styling */
.gallery-scroll::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar in WebKit */
}

.gallery-img {
    height: 280px;
    /* Reduced from 400px */
    width: auto;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
    scroll-snap-align: start;
    box-shadow: var(--shadow-sm);
}

.gallery-img:hover {
    transform: translateY(-2px);
}

/* Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: all 0.2s;
    color: var(--text-main);
}

.gallery-nav-btn:hover {
    opacity: 1;
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: -10px;
}

.gallery-next {
    right: -10px;
}

[data-theme="dark"] .gallery-nav-btn {
    background-color: rgba(30, 41, 59, 0.9);
    color: var(--text-main);
}
.content-prose{
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.pro-con-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.pro-con-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pro-con-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.pro-list li::before {
    content: "✓";
    color: #22c55e;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.con-list li::before {
    content: "✕";
    color: #ef4444;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.info-table {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
}

.info-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
    width: 40%;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    padding: 1rem;
    background: var(--bg-surface);
    font-weight: 600;
    cursor: pointer;
}

.faq-answer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: block;
    color: var(--text-muted);
}

.hot-review-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.hot-review-content {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.alter-wraper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alter-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
}

.alter-card img {
    border-radius: 12px;
    height: 48px;
    width: 48px;
}

.alter-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.alter-content {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-disabled {
    background-color: #e9e9e9;
    color: #9e9e9e;
    border-color: var(--border-color);
}
.app-desc {
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        gap: 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .pro-con-content-grid {
        grid-template-columns: 1fr;
    }

    .gallery-img {
        height: 220px;
    }

    .gallery-nav-btn {
        display: none;
    }

    .trending-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
    .page-btn{
        display: none;
    }
}

.news-grid {
    display: grid;
    gap: 2rem;
}

.news-card {
    display: flex;
    gap: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.news-img {
    width: 300px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-feature-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.about-feature-item strong {
    display: block;
    color: #1a73e8;
    margin-bottom: 5px;
}

.contact-card {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-method {
    margin-bottom: 20px;
}

.contact-method strong {
    display: block;
    color: #1a73e8;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.contact-input {
    width: 100%;
    padding: .625rem 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-main);
    transition: all .2s;
    font-size: .9rem;
}
.contact-success{
    background: #f2fdf8;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #25d940;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: block;
}
.content-wraper{
    display: flex;
    gap: 2rem;
}
.content-info{
    flex:1;
}



.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.content-prose h2 {
    margin-bottom: 1rem;
}

.content-prose p,
ul {
    margin-bottom: 15px;
}

.content-prose ul {
    padding-left: 20px;
}

.content-prose li {
    margin-bottom: 8px;
}

.content-prose .highlight-box {
    background: #fdf2f2;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #d93025;
    margin: 20px 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
    }

    .news-img {
        width: 100%;
        height: 200px;
    }
    .content-wraper {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .about-features-grid {
        grid-template-columns: 1fr;
    }
}

.error-info {
    width: 100%;
    text-align: center;
    margin: 3rem 0 5rem;
}
.error-info h2{
    text-align: center;
    font-size: 210px;
    line-height: 210px;
    font-weight: 500;
    letter-spacing: -8px;
}
.error-info p {
    text-align: center;
    font-size: 28px;
    line-height: 42px;
    display: inline-block;
    margin-top: 0;
    color: #999;
}