/* Service Page Styles - Consistent with Category Page */

/* Use existing theme tokens from category page */
:root {
    /* Service-specific variables that match category page */
    --service-primary: #5b43ea;
    --service-success: #10b981;
    --service-warning: #f59e0b;
    --service-danger: #ef4444;
    --service-info: #3b82f6;
    
    /* Dashboard variables for service modal compatibility */
    --dashboard-bg: #0a0818;
    --dashboard-panel: rgba(255, 255, 255, 0.02);
    --dashboard-border: rgba(255, 255, 255, 0.04);
    --dashboard-accent: #5b43ea;
    --dashboard-success: #26c281;
    --dashboard-warning: #ffb020;
    --dashboard-danger: #f59e0b;
    --dashboard-info: #3b82f6;
    
    /*
      IMPORTANT: Do NOT override global spacing tokens (--space-*) at page scope.
      The service modal and other shared components depend on these tokens for consistent sizing.
      Overriding them here makes the modal padding look larger ONLY on service pages.
    */
    
    /* Radius variables
       IMPORTANT: Do NOT override global --radius/--radius-sm here.
       Those variables are used across header/footer and the whole page.
       Overriding them in service.css changes border-radius site-wide on service pages depending on load order. */
    
    /* Transition variables for service modal */
    --transition: all 0.15s ease;
    --transition-slow: all 0.3s ease;

    /* Hero typography — aligned with cat / sub / type */
    --page-hero-title-size: clamp(1.625rem, 1.4vw + 1.2rem, 2.25rem);
    --page-hero-desc-size: var(--text-lg, 16px);
}

/*
  Service page typography roles — uses storefront tokens from header.css (:root --text-*, --font-sans).
  Display: hero title / major headings · Body: descriptions & tab prose · UI: labels, chips, controls · Meta: breadcrumb, captions.
*/
.service-page {
    font-family: var(--font-sans);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    --svc-leading-body: 1.65;
    --svc-leading-ui: 1.45;
    --svc-max-read-width: 65ch;
}

/* Beat service.html critical `h1…h6 { font-family: Lahzeh }` — keep page type aligned with storefront */
.service-page h1,
.service-page h2,
.service-page h3,
.service-page h4,
.service-page h5,
.service-page h6 {
    font-family: var(--font-sans);
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.service-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

.main-content {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Service Hero */
.service-hero {
    margin-bottom: 3.5rem;
    padding: 1.5rem 0;
}

/* Simple gradient separator — legacy; hero badges no longer use it */
.badge-separator {
    display: none;
}

/* Price Badge - Green/Success Color */
.badge.price-badge {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    font-weight: 500;
}

.badge.price-badge:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
}

.badge.price-badge svg,
.badge.price-badge .badge-icon {
    color: #6ee7b7;
}

.badge.stock-urgency-badge {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.badge.stock-urgency-low {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--service-warning);
}

.badge.stock-urgency-out {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
    color: var(--service-danger);
}

.badge.stock-urgency-badge i {
    font-size: 15px;
}

/* Mobile Badge Styles */
@media (max-width: 768px) {
    .service-hero-intro {
        gap: 0.5rem;
    }

    .service-badges {
        gap: 0.3125rem;
    }

    .badge {
        padding: 0.28125rem 0.5rem;
        font-size: 0.6875rem;
        gap: 0.28125rem;
    }

    .badge-icon,
    .badge-icon-wrap .category-icon-wrap {
        width: 12px;
        height: 12px;
    }

    .badge-icon-wrap .category-icon-css-fallback {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .badge {
        padding: 0.25rem 0.4375rem;
        font-size: 0.6875rem;
        gap: 0.25rem;
    }
}



.hero-content {
    display: grid;
    grid-template-columns: 320px 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    min-width: 0;
}

.service-hero-intro {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-width: 0;
}

.service-badges {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.125rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.service-badges::-webkit-scrollbar {
    display: none;
}

/* Base Badge Style - unified minimal pills for hero meta row */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0.3125rem 0.5625rem;
    border-radius: 999px;
    font-size: var(--text-sm, 12px);
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(224, 218, 246, 0.92);
    position: relative;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.badge-icon,
.badge-icon-wrap {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    stroke-width: 2.5;
    transition: color 0.2s ease;
}

/* Icon via IconRenderer (category-icon-wrap) in badges */
.badge-icon-wrap .category-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
}

.badge-icon-wrap .category-icon-tinted {
    position: absolute;
    inset: 0;
    background: currentColor;
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.badge-icon-wrap .category-icon-css-fallback {
    font-size: 13px;
    display: none;
}

.badge-icon-wrap .category-icon-css-fallback[style*="inline"] {
    display: inline-flex;
}

/* Instant Badge - Amber/Warning Color */
.badge.instant-badge {
    background: rgba(255, 176, 32, 0.08);
    border-color: rgba(255, 176, 32, 0.2);
    color: #fbbf24;
}

.badge.instant-badge:hover {
    background: rgba(255, 176, 32, 0.12);
    border-color: rgba(255, 176, 32, 0.28);
}

.badge.instant-badge svg,
.badge.instant-badge .badge-icon,
.badge.instant-badge .badge-icon-wrap .category-icon-tinted,
.badge.instant-badge .badge-icon-wrap .category-icon-css-fallback {
    color: #fbbf24;
}

/* Delivery Badge - Blue/Info Color */
.badge.delivery-badge {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.badge.delivery-badge:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.28);
}

.badge.delivery-badge svg,
.badge.delivery-badge .badge-icon,
.badge.delivery-badge .badge-icon-wrap .category-icon-tinted,
.badge.delivery-badge .badge-icon-wrap .category-icon-css-fallback {
    color: #93c5fd;
}

/* Delivery Instant - Same as instant badge */
.badge.delivery-badge.delivery-instant {
    background: rgba(255, 176, 32, 0.08);
    border-color: rgba(255, 176, 32, 0.2);
    color: #fbbf24;
}

.badge.delivery-badge.delivery-instant:hover {
    background: rgba(255, 176, 32, 0.12);
    border-color: rgba(255, 176, 32, 0.28);
}

.badge.delivery-badge.delivery-instant svg,
.badge.delivery-badge.delivery-instant .badge-icon,
.badge.delivery-badge.delivery-instant .badge-icon-wrap .category-icon-tinted,
.badge.delivery-badge.delivery-instant .badge-icon-wrap .category-icon-css-fallback {
    color: #fbbf24;
}

/* Guarantee Badge - Purple/Accent Color */
.badge.guarantee-badge {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.badge.guarantee-badge:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.28);
}

.badge.guarantee-badge svg,
.badge.guarantee-badge .badge-icon,
.badge.guarantee-badge .badge-icon-wrap .category-icon-tinted,
.badge.guarantee-badge .badge-icon-wrap .category-icon-css-fallback {
    color: #c4b5fd;
}

.badge.spec-badge {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.07);
    color: rgba(210, 206, 232, 0.82);
    font-weight: 500;
}

.badge.spec-badge:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-title {
    font-size: var(--page-hero-title-size);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--ink) 0%, var(--active-border) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.service-subtitle {
    font-size: var(--page-hero-subtitle-size, var(--text-lg, 16px));
    font-weight: 500;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0;
    max-width: var(--svc-max-read-width);
}

.service-subtitle[hidden] {
    display: none !important;
}

.service-description-container {
    margin: 0;
    position: relative;
    max-width: var(--svc-max-read-width);
}

.service-description {
    font-size: var(--page-hero-desc-size);
    font-weight: 400;
    line-height: var(--svc-leading-body);
    color: var(--ink-2);
    margin: 0;
    flex: 1;
}

/* Phone + tablet — aligned with cat / sub / type */
@media (max-width: 1023px) {
    :root {
        --page-hero-title-size: clamp(1.5rem, 2.2vw + 1.05rem, 1.875rem);
        --page-hero-desc-size: var(--text-base, 14px);
    }
}

@media (max-width: 480px) {
    :root {
        --page-hero-title-size: clamp(1.4375rem, 4.5vw + 0.95rem, 1.75rem);
    }
}

.service-description-container:not(.expanded) .service-description {
    /* محدود کردن به 3 خط در حالت عادی */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-description-container.expanded .service-description {
    /* نمایش کامل متن در حالت expanded */
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    max-height: none !important;
}

/* برای اندازه‌گیری ارتفاع واقعی متن (بدون clamp) — فقط در JS موقت اضافه می‌شود */
.service-description-container.measure-height .service-description {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    max-height: none !important;
}

.read-more-btn {
    display: inline;
    background: none;
    border: none;
    color: var(--active-border);
    font-size: var(--text-sm, 12px);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.15s ease;
    margin-left: 0.25rem;
    padding: 0;
    vertical-align: baseline;
    position: relative;
    z-index: 1;
}

.read-more-btn:hover {
    text-decoration-color: var(--active-border);
}

.read-more-icon {
    width: 12px;
    height: 12px;
    margin-left: 0.25rem;
    transition: transform 0.15s ease;
    display: inline-block;
    vertical-align: middle;
}

.read-more-btn.expanded .read-more-icon {
    transform: rotate(180deg);
}

.read-more-btn.read-more-btn--hidden {
    display: none !important;
}

.description-more {
    display: none;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--accent);
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-label {
    font-size: var(--text-sm, 12px);
    font-weight: 500;
    color: var(--ink-2);
}

.price-amount {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--active-border);
}

/* Hero Image - Left Column */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 420px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    background: var(--panel);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2);
}

.image-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

.hero-service-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
}

/* Service Features */
.service-features {
    margin-bottom: 3rem;
}

.section-title {
    font-size: var(--text-base, 14px);
    font-weight: 500;
    color: rgba(210, 206, 232, 0.72);
    margin: 0 0 1rem 0;
    text-align: left;
    letter-spacing: 0.04em;
    line-height: 1.35;
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.discount-section-icon {
    color: rgba(198, 193, 224, 0.52);
    font-size: 1rem;
    flex-shrink: 0;
    opacity: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--active-border);
    transform: translateY(-1px);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--accent);
    border-radius: 50%;
}

.feature-content h3 {
    font-size: var(--text-base, 14px);
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.5rem;
    line-height: var(--svc-leading-ui);
}

.feature-content p {
    font-size: var(--text-sm, 12px);
    color: var(--ink-2);
    margin: 0;
    line-height: var(--svc-leading-body);
}

/* Discount Packages - Ultra Minimal */
.discount-packages {
    margin-bottom: 3.5rem;
    min-width: 0;
    max-width: 100%;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 0.875rem;
    min-width: 0;
    width: 100%;
}

/* Desktop: one offer card shouldn't stretch full row — cap width, keep grid for 2+ */
@media (min-width: 769px) {
    .packages-grid:has(> .package-card:only-child),
    .packages-grid.packages-grid--single {
        grid-template-columns: minmax(0, min(420px, 100%));
        width: fit-content;
        max-width: 100%;
    }

    .packages-grid:has(> .package-card:only-child) > .package-card,
    .packages-grid.packages-grid--single > .package-card {
        padding: 1.125rem 1.25rem;
    }
}

.package-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
}

.package-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--active-border);
}

/* Clickable Package Card Styles - Simplified */
.package-card.clickable-package-card {
    cursor: pointer;
}

.package-card.clickable-package-card:active {
    background: rgba(255, 255, 255, 0.06);
}

/* Loading State */
.package-card.clickable-package-card.loading {
    opacity: 0.5;
    pointer-events: none;
}

.package-card.featured {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.02);
}

.package-card.featured:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--active-border);
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .packages-grid {
        gap: 0.75rem;
    }
    
    .package-card {
        padding: 0.875rem;
    }
    
    .package-card:hover {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(91, 67, 234, 0.2);
    }
    
    .package-card:active {
        background: rgba(255, 255, 255, 0.05);
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .package-card {
        padding: 0.875rem;
    }
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 0.625rem;
}

.package-badge {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.1875rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.package-card.featured .package-badge {
    background: rgba(91, 67, 234, 0.12);
    color: var(--service-primary);
    border-color: rgba(91, 67, 234, 0.25);
}

.package-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--service-primary);
    opacity: 0.65;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--accent);
}

.package-icon i {
    font-size: 1.125rem;
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1;
    color: inherit;
}
.package-icon i::before {
    display: block;
    width: 100%;
    height: 100%;
}

/* Icon via IconRenderer (category-icon-wrap) in package cards */
.package-icon .category-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
}

.package-icon .category-icon-tinted {
    position: absolute;
    inset: 0;
    background: currentColor;
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.package-icon .category-icon-css-fallback {
    font-size: 1.125rem;
    color: inherit;
    display: none;
}

.package-icon .category-icon-css-fallback[style*="inline"] {
    display: inline-flex;
}

.package-card:hover .package-icon {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--active-border);
}

.package-card.featured .package-icon {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--accent);
    opacity: 0.75;
}

.package-card.featured:hover .package-icon {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--active-border);
    opacity: 0.85;
}

.package-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.package-content h3 {
    font-size: var(--text-base, 14px);
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: var(--svc-leading-ui);
    letter-spacing: -0.01em;
}

.package-quantity {
    font-size: var(--text-xs, 11px);
    color: var(--ink-2);
    margin: 0;
    line-height: var(--svc-leading-ui);
    opacity: 0.75;
}

.package-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

/* Package Price Row - Ultra Clean */
.package-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
    flex-wrap: wrap;
    min-width: 0;
}

.package-price-row .package-pricing {
    margin-bottom: 0;
    min-width: 0;
    flex: 1;
}

.package-savings {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.625rem;
    color: #10b981;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 0.125rem 0.3125rem;
    border-radius: 3px;
}

.original-price {
    font-size: 0.6875rem;
    color: var(--ink-2);
    text-decoration: line-through;
    opacity: 0.5;
    line-height: 1.2;
    font-weight: 400;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.discount-price {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--service-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Package Countdown - Ultra Minimal */
.package-countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.1875rem;
    font-size: 0.625rem;
    color: var(--ink-2);
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--accent);
    padding: 0.125rem 0.3125rem;
    border-radius: 3px;
    opacity: 0.9;
}

.countdown-icon {
    width: 0.6875rem;
    height: 0.6875rem;
    flex-shrink: 0;
    stroke: currentColor;
    opacity: 0.7;
}

.countdown-text {
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.package-countdown.countdown-urgent {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.08);
    border-color: rgba(251, 113, 133, 0.15);
}

.package-countdown.countdown-urgent .countdown-icon {
    stroke: #fb7185;
}

@media (max-width: 640px) {
    /* در موبایل هم قیمت و تایمر کنار هم می‌مانند */
}

/* Service Details */
.service-details {
    margin-bottom: 3.5rem;
}

.details-main {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    max-width: 100%;
    --svc-details-surface: rgba(255, 255, 255, 0.02);
    --svc-details-surface-hover: rgba(255, 255, 255, 0.04);
    --svc-details-surface-active: rgba(255, 255, 255, 0.05);
    --svc-details-border: var(--accent);
    --svc-details-border-active: var(--active-border);
    --svc-details-radius: var(--radius-sm, 16px);
    --svc-details-trigger-pad: 1.125rem 1.125rem;
    --svc-details-body-pad: 0.875rem 1.125rem 1.25rem;
    --svc-details-prose-size: var(--text-base, 14px);
    --svc-details-prose-leading: var(--svc-leading-body, 1.65);
    --svc-details-prose-color: var(--ink-2);
    --svc-details-label-size: var(--text-sm, 12px);
    --svc-details-label-color: rgba(210, 206, 232, 0.72);
}

/* Shared card surface — summary, accordion, FAQ */
.svc-details-card,
.details-accordion-item,
.faq-item {
    background: var(--svc-details-surface);
    border: 1px solid var(--svc-details-border);
    border-radius: var(--svc-details-radius);
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.svc-details-card:hover,
.details-accordion-item:hover,
.faq-item:hover {
    background: var(--svc-details-surface-hover);
    border-color: var(--svc-details-border-active);
}

.details-accordion-item:has(.details-accordion-trigger[aria-expanded="true"]),
.faq-item:has(.faq-question[aria-expanded="true"]) {
    border-color: var(--svc-details-border-active);
}

/* Section labels */
.details-section h2 {
    font-size: var(--svc-details-label-size);
    font-weight: 500;
    color: var(--svc-details-label-color);
    margin: 0 0 0.875rem;
    line-height: 1.35;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-transform: none;
}

.details-section-icon {
    width: 1rem;
    height: 1rem;
    color: rgba(198, 193, 224, 0.52);
    flex-shrink: 0;
    opacity: 0.95;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.125rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1.125rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm, 16px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--active-border);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-item:hover::before {
    opacity: 0;
}

.info-label {
    font-size: var(--svc-details-label-size);
    color: var(--ink-2);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
    line-height: var(--svc-leading-ui);
}

.info-icon {
    width: 15px;
    height: 15px;
    color: var(--service-primary);
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.info-icon[class*="iconoir"] {
    font-size: 15px;
    width: 1em;
    height: 1em;
}

.info-icon.info-icon-svg {
    width: 15px;
    height: 15px;
}

.info-icon-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.info-item:hover .info-icon {
    opacity: 1;
    transform: scale(1.05);
}

.info-value {
    font-size: var(--text-base, 14px);
    color: var(--ink);
    font-weight: 600;
    line-height: var(--svc-leading-ui);
    letter-spacing: -0.01em;
    margin-top: 0.125rem;
    overflow-wrap: anywhere;
}

/* Stock Status Styles */
.info-value.stock-status {
    font-weight: 600;
}

.info-value.stock-status.stock-in {
    color: var(--service-success);
}

.info-value.stock-status.stock-low {
    color: var(--service-warning);
}

.info-value.stock-status.stock-out {
    color: var(--service-danger);
}

.info-value.stock-status.stock-unlimited {
    color: var(--service-primary);
}

.info-value.stock-status.stock-unknown {
  color: var(--ink-2);
}

.info-value.info-value-rating {
  color: #ffb800;
  font-weight: 600;
}


/* FAQ + accordion triggers */
.faq-list,
.details-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.details-accordion-trigger,
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: var(--svc-details-trigger-pad);
    min-height: 3.25rem;
    background: transparent;
    border: none;
    color: var(--ink);
    font-size: var(--svc-details-prose-size);
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: start;
}

.details-accordion-trigger:hover,
.faq-question:hover {
    background: transparent;
}

.details-accordion-trigger[aria-expanded="true"],
.faq-question[aria-expanded="true"] {
    background: var(--svc-details-surface-hover);
}

.faq-icon,
.details-accordion-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.details-accordion-trigger[aria-expanded="true"] .details-accordion-chevron,
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.details-accordion-panel,
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.25s ease;
}

.svc-details-prose {
    padding: var(--svc-details-body-pad);
    font-size: var(--svc-details-prose-size);
    color: var(--svc-details-prose-color);
    line-height: var(--svc-details-prose-leading);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.svc-details-prose p {
    margin: 0 0 0.75rem;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.svc-details-prose p:last-child {
    margin-bottom: 0;
}

.svc-details-prose a {
    color: var(--active-border);
    text-decoration: none;
    transition: color 0.2s ease;
}

.svc-details-prose a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

.svc-details-prose strong,
.svc-details-prose b {
    font-weight: 600;
    color: var(--ink);
}

.svc-details-prose em,
.svc-details-prose i {
    font-style: italic;
}

.svc-details-prose ul,
.svc-details-prose ol {
    margin: 0.5rem 0 0.75rem;
    padding-inline-start: 1.125rem;
}

.svc-details-prose li {
    margin-bottom: 0.45rem;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.svc-details-prose li:last-child {
    margin-bottom: 0;
}

.svc-details-prose h1,
.svc-details-prose h2,
.svc-details-prose h3,
.svc-details-prose h4,
.svc-details-prose h5,
.svc-details-prose h6 {
    font-size: var(--svc-details-prose-size);
    font-weight: 600;
    color: var(--ink);
    margin: 0.875rem 0 0.5rem;
    line-height: 1.4;
}

.svc-details-prose h1:first-child,
.svc-details-prose h2:first-child,
.svc-details-prose h3:first-child,
.svc-details-prose h4:first-child {
    margin-top: 0;
}

.svc-details-prose hr {
    border: 0;
    height: 1px;
    margin: 1rem 0;
    background: var(--accent);
}

.faq-answer > p {
    margin: 0;
    padding: 0 1.125rem 1.25rem;
    font-size: var(--svc-details-prose-size);
    color: var(--svc-details-prose-color);
    line-height: var(--svc-details-prose-leading);
}

.faq-item.faq-item--collapsed {
    display: none;
}

.faq-list.faq-list--expanded .faq-item.faq-item--collapsed {
    display: block;
}

.faq-show-more-toggle {
    margin: 1rem auto 0;
    padding: 0.35rem 0.85rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm, 8px);
    color: var(--muted, rgba(255, 255, 255, 0.55));
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.faq-show-more-toggle:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.03);
}

.faq-show-more-toggle:active {
    transform: scale(0.98);
}

.faq-show-more-toggle i {
    font-size: 0.875rem;
    transition: transform var(--transition-normal, 0.2s ease);
}

.faq-show-more-toggle.expanded i {
    transform: rotate(180deg);
}

/* Order Sidebar */
.order-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
    width: 100%;
}

.order-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.order-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--active-border);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(91, 67, 234, 0.15);
}

.order-price-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0;
}

.order-card .price-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--text-xs, 11px);
    color: var(--ink-2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.price-icon {
    width: 11px;
    height: 11px;
    color: var(--active-border);
    opacity: 0.7;
    flex-shrink: 0;
}

.order-price {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--active-border);
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.order-price:empty {
    display: none;
}

.order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    width: 100%;
}

.order-btn.primary {
    background: var(--active-border);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(91, 67, 234, 0.25);
    position: relative;
    transition: all 0.2s ease;
}

.order-btn.primary:hover {
    background: #5a4fcf;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(91, 67, 234, 0.35);
}

.order-btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(91, 67, 234, 0.25);
}

.order-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 2.5;
}

/* Mobile Fixed CTA */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--panel);
    border-top: 2px solid var(--service-primary);
    padding: var(--space-lg, 1rem);
    padding-bottom: max(var(--space-lg, 1rem), env(safe-area-inset-bottom));
    z-index: 1000;
    display: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg, 1rem);
    max-width: 1400px;
    margin: 0 auto;
}

.mobile-cta-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs, 4px);
    flex: 1;
    min-width: 0;
}

.mobile-cta-service {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-cta-price-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm, 8px);
    flex-wrap: wrap;
}

.mobile-cta-price {
    font-size: 0.75rem;
    color: var(--active-border);
    font-weight: 600;
    opacity: 0.9;
}

.mobile-cta-price-original {
    font-size: 0.65rem;
    color: var(--ink-2, rgba(255, 255, 255, 0.5));
    text-decoration: line-through;
    font-weight: 500;
    margin-right: 4px;
}

.mobile-cta-price-current {
    font-size: 0.75rem;
    color: var(--active-border);
    font-weight: 600;
}

.mobile-cta-discount-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--service-success, #26c281);
    background: rgba(38, 194, 129, 0.15);
    padding: 2px 6px;
    border-radius: var(--radius-sm, 16px);
    white-space: nowrap;
}

    .mobile-cta-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm, 0.5rem);
    padding: 0.75rem 1.25rem;
    min-height: 44px;
    background: var(--active-border);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-cta-btn:hover {
    background: #5a4fcf;
    transform: translateY(-1px);
}

.mobile-cta-btn svg {
    width: 16px;
    height: 16px;
}





/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-image {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .image-placeholder,
    .hero-service-image {
        aspect-ratio: 16/9;
        min-height: 200px;
    }
    
    .order-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .service-page .container {
        padding: 1rem 1rem calc(96px + env(safe-area-inset-bottom, 0px));
    }
    
    .service-title {
        margin-bottom: 0.5rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-image {
        width: 100%;
        max-width: 100%;
    }
    
    .image-placeholder,
    .hero-service-image {
        min-height: 180px;
        max-height: 320px;
        border-radius: var(--radius-sm);
    }
    
    .order-card {
        padding: 1rem;
        gap: 0.875rem;
    }
    
    .order-price {
        font-size: 1rem;
    }
    
    .order-btn.primary {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .package-card {
        padding: 0.875rem;
    }

    .package-price-row,
    .package-pricing {
        flex-wrap: wrap;
        min-width: 0;
    }

    .package-savings {
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    /* Details section headings share one style */
    
    .details-section-icon {
        width: 1rem;
        height: 1rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .info-item {
        padding: 1rem 0.875rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-sm);
        gap: 0.5rem;
        transition: all 0.2s ease;
    }

    .info-item:hover {
        transform: translateY(-1px);
    }

    .info-item:active {
        background: rgba(255, 255, 255, 0.05);
        transform: scale(0.98);
    }

    .faq-question {
        padding: 1rem 0.875rem;
        min-height: 3rem;
    }

    .faq-answer > p {
        padding: 0 0.875rem 1rem;
    }

    .svc-details-card:active,
    .faq-item:active {
        background: var(--svc-details-surface-active);
        transform: scale(0.98);
    }
    
    .order-card {
        padding: 1.25rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        gap: 1rem;
    }
    
    .order-card:active {
        background: rgba(255, 255, 255, 0.05);
        transform: scale(0.98);
    }
    
    .order-price-container {
        gap: 0.3125rem;
    }
    
    .order-card .price-label {
        font-size: 10px;
        gap: 0.3125rem;
    }
    
    .price-icon {
        width: 10px;
        height: 10px;
    }
    
    .order-price {
        font-size: 1.375rem;
    }
    
    .order-btn.primary {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .order-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .mobile-cta {
        display: block;
        background: rgba(25, 22, 42, 0.9);
        border-top-width: 1px;
        box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.35);
    }

    .mobile-cta-price {
        font-size: 0.9375rem;
    }

    .mobile-cta-price-original {
        font-size: 0.8125rem;
    }

    .mobile-cta-price-current {
        font-size: 0.9375rem;
    }

    .mobile-cta-discount-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    body {
        padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    }
    
    .order-sidebar {
        display: none;
    }
    
    /* Related Services Mobile */
    .related-services {
        margin: 2.5rem 0;
        padding: 1.5rem 0;
    }
    
    .related-services-header {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .related-services-header .section-title {
        font-size: var(--text-base, 14px);
        text-align: center;
        justify-content: center;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
    }
    
    .related-services .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .service-card {
        min-height: 140px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .service-card:active {
        background: rgba(255, 255, 255, 0.05);
        transform: scale(0.98);
    }
    
    .service-card-header {
        padding: 0.75rem 0.75rem 0 0.75rem;
    }
    
    .service-icon {
        font-size: 1.25rem;
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    
    .service-title-row {
        gap: 0.5rem;
    }
    
    .service-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.375rem;
    }
    
    .service-card-content {
        padding: 0.5rem 0.75rem;
    }
    
    .service-card h3 {
        font-size: 0.9rem;
    }
    
    .service-card p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .service-features {
        gap: 0.2rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-tag {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }
    
    .service-card-footer {
        padding: 0.5rem 0.75rem 0.75rem 0.75rem;
    }
    
    .service-price {
        font-size: 0.8rem;
    }
    
    .service-arrow {
        width: 12px;
        height: 12px;
    }
    
    .related-services-footer {
        margin-top: 1rem;
    }
    
    .view-all-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Detailed Info Mobile */
    .detailed-info-toggle {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .detailed-info-content {
        padding: 0.75rem;
        margin-top: 0.5rem;
    }
    
    .detailed-info-content h3 {
        font-size: 0.9rem;
    }
    
    .detailed-info-content h4 {
        font-size: 0.85rem;
        margin: 0.75rem 0 0.5rem;
    }
    
}

@media (max-width: 480px) {
    .price-amount {
        font-size: 1.25rem;
    }
    
    /* Summary: horizontal scroll strip — phones only */
    .info-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.625rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.375rem;
        margin-inline: -0.125rem;
        padding-inline: 0.125rem;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 0.25rem;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
    }

    .info-grid::-webkit-scrollbar {
        height: 5px;
    }

    .info-grid::-webkit-scrollbar-track {
        background: transparent;
        border-radius: 999px;
    }

    .info-grid::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 999px;
    }
    
    .info-item {
        flex: 0 0 auto;
        min-width: 132px;
        max-width: 180px;
        scroll-snap-align: start;
        padding: 0.625rem 0.5rem;
        gap: 0.375rem;
    }
    
    .info-item:active {
        background: rgba(255, 255, 255, 0.05);
        transform: scale(0.98);
    }
    
    .info-label {
        font-size: 0.75rem;
        gap: 0.3rem;
        margin-bottom: 0;
        font-weight: 500;
    }
    
    .info-icon {
        width: 13px;
        height: 13px;
    }
    
    .info-icon[class*="iconoir"] {
        font-size: 13px;
    }
    
    .info-icon.info-icon-svg {
        width: 13px;
        height: 13px;
    }
    
    .info-value {
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .details-section .svc-details-prose .terms-content li::before {
        width: 6px;
        height: 6px;
        min-width: 6px;
        min-height: 6px;
        margin-top: calc(0.5lh - 3px);
    }

    .details-section .step-number {
        width: 1.375rem;
        height: 1.375rem;
        min-width: 1.375rem;
        min-height: 1.375rem;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .package-card {
        padding: 0.875rem;
        min-height: auto;
    }
    
    .package-card:active {
        background: rgba(255, 255, 255, 0.05);
        transform: scale(0.98);
    }
    
    .package-header {
        margin-bottom: 0.5rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .package-badge {
        font-size: 0.625rem;
        padding: 0.1875rem 0.5rem;
        line-height: 1.2;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    
    .package-icon {
        width: 28px;
        height: 28px;
        order: 0;
        flex-shrink: 0;
    }
    
    .package-icon i {
        font-size: 0.875rem;
    }
    
    .package-content {
        gap: 0.375rem;
        align-items: stretch;
        text-align: start;
        min-width: 0;
    }
    
    .package-content h3 {
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.3;
        margin: 0;
        overflow-wrap: anywhere;
    }
    
    .package-quantity {
        font-size: 0.5625rem;
        line-height: 1.3;
        opacity: 0.7;
    }
    
    .package-price-row {
        gap: 0.375rem;
        margin-bottom: 0.25rem;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        min-width: 0;
    }
    
    .package-pricing {
        flex-direction: row;
        align-items: baseline;
        gap: 0.375rem;
        flex-wrap: wrap;
        min-width: 0;
    }
    
    .discount-price {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    
    .original-price {
        font-size: 0.6875rem;
        line-height: 1.2;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    
    .package-savings {
        font-size: 0.625rem;
        padding: 0.125rem 0.3125rem;
        line-height: 1.2;
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }
    
    .package-countdown {
        font-size: 0.5rem;
        padding: 0.0625rem 0.1875rem;
        gap: 0.125rem;
    }
    
    .countdown-icon {
        width: 0.5rem;
        height: 0.5rem;
    }
    
    .countdown-text {
        font-size: 0.5rem;
        line-height: 1.2;
    }
    
    /* Related Services Small Mobile */
    .related-services {
        margin: 2rem 0;
        padding: 1.25rem 0;
    }
    
    .related-services-header {
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    .related-services-header .section-title {
        font-size: var(--text-sm, 12px);
        text-align: center;
        justify-content: center;
    }
    
    .section-subtitle {
        font-size: 0.7rem;
    }
    
    .related-services .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card {
        min-height: 120px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .service-card:active {
        background: rgba(255, 255, 255, 0.05);
        transform: scale(0.98);
    }
    
    .service-card-header {
        padding: 0.5rem 0.5rem 0 0.5rem;
    }
    
    .service-icon {
        font-size: 1rem;
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
    
    .service-title-row {
        gap: 0.4rem;
    }
    
    .service-badge {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
    }
    
    .service-card-content {
        padding: 0.375rem 0.5rem;
    }
    
    .service-card h3 {
        font-size: 0.8rem;
    }
    
    .service-card p {
        font-size: 0.7rem;
        margin-bottom: 0.375rem;
    }
    
    .service-features {
        gap: 0.15rem;
        margin-bottom: 0.375rem;
    }
    
    .feature-tag {
        font-size: 0.55rem;
        padding: 0.075rem 0.25rem;
    }
    
    .service-card-footer {
        padding: 0.375rem 0.5rem 0.5rem 0.5rem;
    }
    
    .service-price {
        font-size: 0.75rem;
    }
    
    .service-arrow {
        width: 10px;
        height: 10px;
    }
    
    .related-services-footer {
        margin-top: 0.75rem;
    }
    
    .view-all-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .trust-text {
        font-size: 0.65rem;
        padding-top: 0.625rem;
    }
}

/* Focus states for accessibility */
.faq-question:focus {
    outline: none;
}

.order-btn:focus,
.action-btn:focus {
    outline: 2px solid var(--service-primary);
    outline-offset: 2px;
}

/* Animation for smooth interactions */
.feature-item,
.faq-item,
.order-card {
    transition: all 0.2s ease;
}

/* Service Modal Button Layout Fix for Service Page */
.service-modal-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
}

.service-modal-actions .action-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
}

.service-modal-actions .action-btn.primary {
    flex: 1.35 1 0 !important;
}

.service-modal-actions .action-btn.secondary {
    flex: 0.85 1 0 !important;
}

/* Related Services — cards use ServiceCardRenderer + service-card.css (same as catalog) */
.related-services {
    margin: 4rem 0 3rem 0;
    padding: 2.5rem 0;
    border-top: 1px solid var(--accent);
    position: relative;
}

.related-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 0;
}

.related-services-header {
    text-align: center;
    margin-bottom: 2rem;
}

.related-services-header .section-title {
    font-size: var(--text-base, 14px);
    font-weight: 500;
    color: rgba(210, 206, 232, 0.72);
    margin: 0 0 0.35rem 0;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    text-align: center;
    justify-content: center;
    letter-spacing: 0.04em;
}

.related-services .section-subtitle {
    font-size: var(--text-sm, 12px);
    color: rgba(188, 182, 216, 0.56);
    margin: 0;
    opacity: 1;
    font-weight: 400;
}

/* Fixed column count so cards have equal width (one card doesn’t span full row) */
.related-services .services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Card styles come from service-card.css (ServiceCardRenderer) */

.related-services-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--active-border);
    color: var(--ink);
}

.view-all-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
    color: var(--service-primary);
    stroke: var(--service-primary);
}

.view-all-btn:hover svg {
    transform: translateX(1px);
    color: var(--ink);
    stroke: var(--ink);
}

/* Service details accordion */
.details-accordion-item[hidden] {
    display: none !important;
}

.details-accordion-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.details-accordion-icon {
    width: 1rem;
    height: 1rem;
    color: var(--service-primary);
    flex-shrink: 0;
    opacity: 0.85;
}

.details-section .svc-details-prose ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.details-section .svc-details-prose li.feature-list-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
    padding: 0;
    list-style: none;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.details-section .svc-details-prose li.feature-list-item:last-child {
    margin-bottom: 0;
}

.details-section .svc-details-prose li.feature-list-item .feature-bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    color: var(--service-primary);
}

.details-section .svc-details-prose li.feature-list-item .feature-bullet svg {
    width: 100%;
    height: 100%;
    display: block;
}

.details-section .svc-details-prose li.feature-list-item span:not(.feature-bullet) {
    flex: 1;
    color: inherit;
}

.details-section .svc-details-prose .terms-content {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.details-section .svc-details-prose .terms-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.details-section .svc-details-prose .terms-content li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
    padding: 0;
    list-style: none;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.details-section .svc-details-prose .terms-content li:last-child {
    margin-bottom: 0;
}

.details-section .svc-details-prose .terms-content li::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    min-width: 7px;
    min-height: 7px;
    flex-shrink: 0;
    margin-top: calc(0.5lh - 3.5px);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.42) 0%, transparent 48%),
        var(--service-primary);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.details-section .steps-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.details-section .step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.details-section .step-number {
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
    margin-top: 0.125rem;
    padding: 0;
    border-radius: 50%;
    background: rgba(91, 67, 234, 0.11);
    border: 1px solid rgba(91, 67, 234, 0.28);
    color: var(--service-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--svc-details-label-size);
    line-height: 1;
    flex-shrink: 0;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14);
}

.details-section .step-content {
    flex: 1;
    min-width: 0;
}

.details-section .step-content h5 {
    font-size: var(--svc-details-prose-size);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin: 0 0 0.35rem;
}

.details-section .step-content p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

@media (max-width: 768px) {
    .details-accordion-trigger,
    .faq-question {
        padding: 1rem 0.875rem;
        min-height: 3rem;
    }

    .svc-details-prose {
        padding: 0.75rem 0.875rem 1rem;
    }

    .faq-answer > p {
        padding: 0 0.875rem 1rem;
    }

    .details-accordion-item:active,
    .faq-item:active {
        background: var(--svc-details-surface-active);
        transform: scale(0.98);
    }

    .details-section .svc-details-prose .terms-content li::before {
        width: 6px;
        height: 6px;
        min-width: 6px;
        min-height: 6px;
        margin-top: calc(0.5lh - 3px);
    }

    .details-section .step-number {
        width: 1.375rem;
        height: 1.375rem;
        min-width: 1.375rem;
        min-height: 1.375rem;
    }
}

/* Loading states */
.order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.order-btn:disabled:hover {
    transform: none;
}

