/* Service page — modern tech refresh */

body {
    background:
        radial-gradient(circle at 10% 6%, rgba(37, 99, 235, 0.10), transparent 26%),
        radial-gradient(circle at 90% 0%, rgba(14, 165, 233, 0.10), transparent 24%),
        linear-gradient(180deg, #f5f8ff 0%, #ffffff 46%, #f6f9fc 100%);
}

/* Service type navigation and custom-development catalog */
.service-type-selector {
    position: relative;
    isolation: isolate;
    margin: 2.25rem 0 3rem;
    border: 1px solid #dbe5f1;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.08), transparent 30%),
        #ffffff;
    box-shadow:
        0 24px 60px -42px rgba(30, 64, 175, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.service-type-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 1.15rem 0.85rem;
    border-bottom: 1px solid #e8eef6;
}

.service-type-heading > div {
    display: grid;
    gap: 0.15rem;
}

.service-type-eyebrow {
    color: #2563eb;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.service-type-heading strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.service-type-heading p {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    color: #64748b;
    font-size: 0.72rem;
    white-space: nowrap;
}

.service-type-heading p i {
    color: #3b82f6;
}

.service-type-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.65rem;
}

.service-type-link {
    --service-type-accent: #2563eb;
    --service-type-border: #bfdbfe;
    --service-type-soft: #eff6ff;
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 88px;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    color: #334155;
    background: #ffffff;
    text-decoration: none;
    transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.service-type-development {
    --service-type-accent: #7c3aed;
    --service-type-border: #ddd6fe;
    --service-type-soft: #f5f3ff;
}

.service-type-link:hover {
    border-color: var(--service-type-border);
    color: #0f172a;
    background: var(--service-type-soft);
    box-shadow: 0 14px 30px -24px color-mix(in srgb, var(--service-type-accent) 65%, transparent);
    transform: translateY(-2px);
}

.service-type-link.is-active {
    border-color: var(--service-type-border);
    color: #0f172a;
    background: var(--service-type-soft);
    box-shadow: 0 16px 34px -26px color-mix(in srgb, var(--service-type-accent) 75%, transparent);
    transform: none;
}

.service-type-link.is-active::before {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: -1px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: var(--service-type-accent);
    content: "";
}

.service-type-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--service-type-accent) 45%, white);
    outline-offset: 2px;
}

.service-type-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid var(--service-type-border);
    border-radius: 13px;
    color: var(--service-type-accent);
    background: var(--service-type-soft);
    font-size: 1.2rem;
    box-shadow: 0 10px 22px -18px color-mix(in srgb, var(--service-type-accent) 75%, transparent);
}

.service-type-copy {
    display: grid;
    min-width: 0;
    gap: 0.25rem;
}

.service-type-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.service-type-copy strong {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.service-type-title > span {
    padding: 0.22rem 0.48rem;
    border: 1px solid var(--service-type-border);
    border-radius: 999px;
    color: var(--service-type-accent);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
}

.service-type-copy small {
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.4;
}

.service-type-state {
    display: flex;
    min-width: 32px;
    height: 32px;
    flex: 0 0 auto;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0 0.55rem;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    color: #64748b;
    background: #ffffff;
    font-size: 0.64rem;
    font-weight: 800;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.service-type-state-selected,
.service-type-state > span {
    display: none;
}

.service-type-link.is-active .service-type-state {
    min-width: auto;
    border-color: var(--service-type-accent);
    color: #ffffff;
    background: var(--service-type-accent);
}

.service-type-link.is-active .service-type-state-idle {
    display: none;
}

.service-type-link.is-active .service-type-state-selected,
.service-type-link.is-active .service-type-state > span {
    display: inline-block;
}

.service-type-link:not(.is-active):hover .service-type-state {
    border-color: var(--service-type-border);
    color: var(--service-type-accent);
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .service-type-link,
    .service-type-state {
        transition: none;
    }
}

.service-catalog-section,
.project-services-section {
    scroll-margin-top: 100px;
}

[data-service-panel][hidden] {
    display: none !important;
}

.service-section-heading {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.service-section-heading > span {
    color: #2563eb;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.service-section-heading h2 {
    margin: .45rem 0 .5rem;
    color: #0f172a;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 750;
}

.service-section-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.75;
}

.project-services-section {
    position: relative;
    padding: clamp(2rem, 5vw, 4rem);
    margin-top: 5rem;
    border-radius: 32px;
    overflow: hidden;
    color: #e2e8f0;
    background:
        radial-gradient(circle at 88% 8%, rgba(124, 58, 237, .28), transparent 24rem),
        radial-gradient(circle at 4% 90%, rgba(14, 165, 233, .18), transparent 22rem),
        linear-gradient(145deg, #07152f, #111c44 55%, #312e81);
}

.project-section-heading > span { color: #c4b5fd; }
.project-section-heading h2 { color: #fff; }
.project-section-heading p { color: rgba(226, 232, 240, .72); }

.project-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-bottom: 1.75rem;
}

.project-filter-link {
    padding: .55rem .9rem;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.06);
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
}

.project-filter-link:hover,
.project-filter-link.is-active {
    border-color: #c4b5fd;
    color: #1e1b4b;
    background: #c4b5fd;
}

.project-service-card {
    display: flex;
    min-height: 100%;
    padding: 1.4rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    flex-direction: column;
    background: rgba(15,23,42,.64);
    box-shadow: 0 24px 55px rgba(2,6,23,.25);
    backdrop-filter: blur(14px);
}

.project-service-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-service-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: var(--project-accent);
    font-size: 1.2rem;
}

.project-service-category {
    color: #c4b5fd;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-service-card h3 { margin: 0 0 .55rem; color: #fff; font-size: 1.25rem; font-weight: 700; }
.project-service-card > p { color: rgba(226,232,240,.68); font-size: .82rem; line-height: 1.65; }
.project-service-features { display: grid; gap: .5rem; padding: 0; margin: .8rem 0 1.2rem; list-style: none; }
.project-service-features li { display: flex; gap: .5rem; color: rgba(255,255,255,.82); font-size: .76rem; }
.project-service-features i { color: #a7f3d0; }
.project-service-price { display: grid; gap: .2rem; padding-top: 1rem; margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); }
.project-service-price span { color: rgba(255,255,255,.52); font-size: .68rem; }
.project-service-price del { color: #94a3b8; font-size: .72rem; }
.project-service-price strong { color: #fff; font-size: 1.05rem; }
.project-service-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: 1rem; }
.project-service-actions a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: .35rem; padding: .6rem .75rem; border-radius: 11px; font-size: .72rem; font-weight: 700; text-decoration: none; }
.project-detail-link { border: 1px solid rgba(255,255,255,.2); color: #fff; }
.project-detail-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.project-quote-link { color: #1e1b4b; background: #c4b5fd; }
.project-quote-link:hover { color: #1e1b4b; background: #ddd6fe; }

.project-services-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    background: rgba(255,255,255,.06);
}

.project-services-cta span { color: #7dd3fc; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.project-services-cta h3 { margin: .35rem 0; color: #fff; font-size: 1.2rem; }
.project-services-cta p { margin: 0; color: rgba(226,232,240,.65); font-size: .78rem; }
.project-services-cta .btn { flex: 0 0 auto; border-radius: 999px; font-weight: 700; }

@media (max-width: 767.98px) {
    .service-type-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }

    .service-type-heading p {
        white-space: normal;
    }

    .service-type-nav {
        padding: 0.5rem;
    }

    .service-type-link {
        min-height: 104px;
        align-items: flex-start;
        padding: 0.9rem;
        flex-wrap: wrap;
    }

    .service-type-copy {
        flex: 1 1 calc(100% - 62px);
    }

    .service-type-state {
        position: absolute;
        top: 0.8rem;
        right: 0.8rem;
    }

    .service-type-title {
        padding-right: 4.75rem;
    }

    .service-type-title > span {
        display: none;
    }

    .project-services-section { padding: 1.35rem; border-radius: 24px; }
    .project-services-cta { align-items: flex-start; flex-direction: column; }
    .project-service-actions { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .service-type-selector {
        border-radius: 20px;
    }

    .service-type-nav {
        grid-template-columns: 1fr;
    }

    .service-type-link {
        min-height: 82px;
        align-items: center;
        flex-wrap: nowrap;
    }

    .service-type-copy {
        flex-basis: auto;
    }

    .service-type-state {
        position: static;
    }

    .service-type-title {
        padding-right: 0;
    }

    .service-type-link.is-active .service-type-state > span {
        display: none;
    }
}

/* Faint tech grid behind the whole page (kept behind all content) */
body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.6), transparent 70%);
}

.filter-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.filter-wrapper::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    backdrop-filter: blur(6px);
    text-decoration: none;
}

.filter-chip:hover {
    color: var(--blue-600);
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 18px -6px rgba(37, 99, 235, 0.5);
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.category-accent {
    width: 6px;
    height: 32px;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    border-radius: 10px;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.45);
}

.category-badge {
    font-size: 0.85rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
    color: var(--blue-600);
    padding: 2px 12px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: var(--radius-full);
    font-weight: 700;
}

.service-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    padding: 24px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.service-card-intro {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-card-copy {
    min-width: 0;
}

/* Gradient top accent line */
.service-card::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #06b6d4, #14b8a6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    content: "";
}

/* Spotlight glow that reveals on hover */
.service-card::after {
    position: absolute;
    top: -40%;
    right: -30%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    content: "";
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px -20px rgba(37, 99, 235, 0.45);
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(255, 255, 255, 0.92);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card.is-unavailable {
    border-color: rgba(100, 116, 139, 0.35);
    background: rgba(248, 250, 252, 0.94);
}

.service-card.is-unavailable:hover {
    transform: none;
    box-shadow: none;
}

.service-card.is-unavailable > :not(.service-card-watermark) {
    opacity: 0.42;
    filter: grayscale(0.7);
}

.service-card-watermark {
    position: absolute;
    top: 42%;
    left: 50%;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: max-content;
    max-width: 85%;
    padding: 0.7rem 1.2rem;
    border: 2px solid #dc2626;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: #b91c1c;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-align: center;
    transform: translate(-50%, -50%) rotate(-8deg);
    box-shadow: 0 12px 30px -16px rgba(15, 23, 42, 0.65);
    pointer-events: none;
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.icon-box {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    margin-bottom: 0;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 10px 22px -6px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .icon-box {
    box-shadow: 0 14px 28px -6px rgba(37, 99, 235, 0.5);
}

.service-card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    padding: 0.28rem 0.65rem;
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: var(--radius-full);
    background: #dc2626;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 18px -14px rgba(220, 38, 38, 0.9);
}

.card-title {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.card-desc {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    min-height: 1.45em;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--gray-500);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    margin-bottom: 0;
}

.service-feature-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.35rem;
    min-height: 0;
    padding: 0;
    margin: 0;
    color: var(--gray-700);
    font-size: 0.88rem;
    line-height: 1.35;
    list-style: none;
}

.service-card-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.service-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.service-feature-list li i {
    flex: 0 0 auto;
    color: #16a34a;
    font-size: 0.88rem;
    line-height: 1.35;
}

.service-feature-list li span {
    min-width: 0;
}

.saas-price {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid #dcfce7;
    border-radius: 12px;
    background: #f0fdf4;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.saas-price-header,
.saas-price-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.saas-price-header {
    min-height: 1.5rem;
}

.saas-price-label {
    display: block;
    margin-bottom: 0;
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 700;
}

.saas-price strong {
    color: var(--gray-800);
    font-size: 1.02rem;
    font-weight: 800;
}

.saas-price span {
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 600;
}

.saas-price strong::before {
    content: "฿";
}

.saas-price .saas-discount-badge {
    display: inline-flex;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
}

.saas-price-original {
    display: block;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.saas-price-current {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    flex: 0 0 auto;
}

.saas-price-current strong {
    color: #dc2626;
    font-size: 1.25rem;
    font-weight: 900;
}

.saas-price .saas-price-unit {
    color: var(--gray-500);
    font-size: 0.82rem;
    font-weight: 700;
}

.service-social-proof {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    min-height: 0;
    margin-bottom: 0.9rem;
    color: var(--gray-700);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}

.service-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    font-size: 0.82rem;
    line-height: 1;
}

.service-rating i {
    color: currentColor;
    font-size: inherit;
    line-height: 1;
}

.service-rating .bi-star {
    color: #cbd5e1;
}

.service-rating,
.service-rating.is-excellent,
.service-rating.is-good,
.service-rating.is-fair,
.service-rating.is-poor {
    color: #f59e0b;
}

.service-rating-score {
    margin-left: 0.18rem;
    color: var(--gray-600);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.service-actions {
    position: relative;
    z-index: 1;
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-actions > .service-buy-btn {
    flex: 1 0 100%;
}

.service-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 40px;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-buy-now-btn {
    background: #16a34a;
    /* box-shadow: 0 10px 20px -12px rgba(22, 163, 74, 0.8); */
}

.service-trial-btn {
    border: 1px solid #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.service-disabled-btn {
    border: 1px solid #cbd5e1;
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

.view-detail.is-disabled {
    color: #64748b;
    cursor: not-allowed;
}

.service-add-cart-btn {
    background: #f97316;
    box-shadow: 0 10px 20px -12px rgba(249, 115, 22, 0.8);
}

.service-buy-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.service-buy-now-btn:hover {
    box-shadow: 0 14px 26px -12px rgba(22, 163, 74, 0.9);
}

.service-trial-btn:hover {
    background: #dbeafe;
    color: #1d4ed8;
    box-shadow: 0 14px 26px -14px rgba(37, 99, 235, 0.8);
}

.service-add-cart-btn:hover {
    box-shadow: 0 14px 26px -12px rgba(249, 115, 22, 0.9);
}

.view-detail {
    flex: 1 0 100%;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: gap 0.2s ease;
    text-decoration: none;
}

.service-card:hover .view-detail {
    gap: 10px;
}

.view-detail i {
    transition: transform 0.2s ease;
}

.service-card:hover .view-detail i {
    transform: translateX(2px);
}

.animate-card {
    animation: fadeIn 0.5s ease forwards;
}

#empty-state {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 32px;
    border: 2px dashed rgba(37, 99, 235, 0.25);
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .service-actions {
        flex-wrap: wrap;
    }

    body::before {
        background-size: 32px 32px;
    }
}

@media (max-width: 575.98px) {
    .saas-price-header,
    .saas-price-body {
        gap: 0.5rem;
    }

}

/* Ready-to-use catalog refresh */
.service-catalog-section {
    position: relative;
    isolation: isolate;
    padding: clamp(1.35rem, 4vw, 3rem);
    border: 1px solid rgba(191, 219, 254, 0.78);
    border-radius: 32px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.86));
    box-shadow: 0 30px 80px -48px rgba(30, 64, 175, 0.5);
}

.ready-services-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ready-services-backdrop::before,
.ready-services-backdrop::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    filter: blur(1px);
}

.ready-services-backdrop::before {
    top: -190px;
    right: -140px;
    width: 430px;
    height: 430px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 68%);
}

.ready-services-backdrop::after {
    bottom: 8%;
    left: -180px;
    width: 390px;
    height: 390px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
}

.ready-services-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: clamp(1.5rem, 4vw, 3rem);
    max-width: none;
    margin-bottom: 1.75rem;
}

.ready-services-heading-copy > span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.ready-services-heading-copy h2 {
    letter-spacing: -0.035em;
}

.ready-services-heading-copy p {
    max-width: 660px;
}

.ready-services-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.ready-stat-card {
    display: grid;
    min-width: 0;
    padding: 0.9rem 0.65rem;
    border: 1px solid rgba(191, 219, 254, 0.82);
    border-radius: 16px;
    place-items: center;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 30px -24px rgba(30, 64, 175, 0.55);
    backdrop-filter: blur(10px);
}

.ready-stat-card strong {
    color: #1d4ed8;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 900;
    line-height: 1;
}

.ready-stat-card span {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 700;
    text-align: center;
}

.ready-stat-card.is-active strong {
    color: #059669;
}

.ready-filter-panel {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(203, 213, 225, 0.75);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 34px -28px rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
}

.ready-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    padding-left: 0.35rem;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
}

.ready-filter-label i {
    color: #2563eb;
}

.ready-filter-panel .filter-wrapper {
    padding: 0;
}

.ready-filter-panel .filter-chip {
    padding: 0.55rem 0.95rem;
    border-color: transparent;
    background: transparent;
    font-size: 0.78rem;
}

.ready-filter-panel .filter-chip:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.ready-filter-panel .filter-chip.active {
    border-color: transparent;
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
    box-shadow: 0 10px 22px -12px rgba(29, 78, 216, 0.85);
}

.ready-category-block {
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.ready-category-block:last-child {
    margin-bottom: 0;
}

.ready-category-block + .ready-category-block {
    padding-top: 2rem;
    border-top: 1px solid rgba(203, 213, 225, 0.65);
}

.ready-category-block .category-title-wrapper {
    gap: 0.8rem;
    margin: 0 0 1.25rem;
}

.category-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    place-items: center;
    color: #1d4ed8;
    background: linear-gradient(145deg, #ffffff, #dbeafe);
    box-shadow: 0 10px 20px -16px rgba(29, 78, 216, 0.8);
}

.category-overline {
    display: block;
    margin-bottom: 0.12rem;
    color: #94a3b8;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.ready-category-block .category-badge {
    margin-left: auto;
    background: #ffffff;
}

.service-card {
    padding: 1.25rem;
    border-color: rgba(203, 213, 225, 0.8);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 45px -34px rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
}

.service-card::before {
    height: 4px;
    background: linear-gradient(90deg, var(--service-accent), color-mix(in srgb, var(--service-accent) 42%, #38bdf8));
    transform: scaleX(1);
}

.service-card::after {
    background: radial-gradient(circle, color-mix(in srgb, var(--service-accent) 14%, transparent), transparent 70%);
}

.service-card:hover {
    border-color: color-mix(in srgb, var(--service-accent) 32%, #cbd5e1);
    box-shadow: 0 28px 52px -30px color-mix(in srgb, var(--service-accent) 45%, #1e293b);
    transform: translateY(-6px);
}

.service-card.is-unavailable {
    border-color: rgba(203, 213, 225, 0.86);
    background: rgba(248, 250, 252, 0.94);
}

.service-card.is-unavailable:hover {
    border-color: #cbd5e1;
    box-shadow: 0 24px 45px -34px rgba(15, 23, 42, 0.65);
    transform: translateY(-3px);
}

.service-card.is-unavailable > :not(.service-card-watermark) {
    opacity: 1;
    filter: none;
}

.service-card-labels {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-height: 25px;
    margin-bottom: 1rem;
}

.service-card-category {
    overflow: hidden;
    color: #64748b;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.service-card-label-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.service-card-status,
.service-card-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
}

.service-card-status.is-ready {
    border-color: #a7f3d0;
    color: #047857;
    background: #ecfdf5;
}

.service-card-status.is-maintenance {
    border-color: #fed7aa;
    color: #c2410c;
    background: #fff7ed;
}

.service-card-badge {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fef2f2;
}

.service-card-intro {
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.service-card .icon-box {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 15px;
    font-size: 1.5rem;
}

.service-card .card-title {
    font-size: 1.08rem;
    line-height: 1.25;
}

.service-card .card-desc {
    min-height: 2.7em;
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.service-feature-list {
    gap: 0.5rem;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: rgba(248, 250, 252, 0.84);
    font-size: 0.78rem;
}

.saas-price {
    border-color: #bae6fd;
    background: linear-gradient(135deg, #f0f9ff, #ecfeff);
}

.service-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.service-actions > .service-buy-btn {
    width: 100%;
    min-height: 42px;
    padding-inline: 0.65rem;
    font-size: 0.76rem;
}

.service-actions .view-detail {
    grid-column: 1 / -1;
    min-height: 38px;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.65rem;
    font-size: 0.8rem;
}

@media (max-width: 991.98px) {
    .ready-services-heading {
        grid-template-columns: 1fr;
    }

    .ready-services-stats {
        max-width: 460px;
    }
}

@media (max-width: 767.98px) {
    .service-catalog-section {
        padding: 1.2rem;
        border-radius: 24px;
    }

    .ready-filter-panel {
        align-items: stretch;
        flex-direction: column;
        gap: 0.6rem;
    }

    .ready-filter-label {
        padding-left: 0;
    }

    .service-card:hover,
    .service-card.is-unavailable:hover {
        transform: none;
    }
}

@media (max-width: 420px) {
    .ready-services-stats {
        gap: 0.4rem;
    }

    .ready-stat-card {
        padding-inline: 0.35rem;
    }

    .service-card-labels {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-card-label-group {
        justify-content: flex-start;
    }

    .service-actions {
        grid-template-columns: 1fr;
    }

    .service-actions .view-detail {
        grid-column: auto;
    }
}
