/* =============================================================================
   SERVICES MARKETPLACE PAGE
   /services - Browse and purchase services from houses
   /services/<id> - Service detail page
   ============================================================================= */

/* =============================================================================
   BROWSE PAGE
   ============================================================================= */

.services-page {
    padding: var(--space-4);
    max-width: 800px;
    margin: 0 auto;
}

/* --- Header --- */
.services-header {
    margin-bottom: var(--space-4);
}

.services-header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-1);
}

.services-header__title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
}

.services-header__balance {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--surface-secondary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--accent-primary);
}

.services-header__subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
}

/* --- Filter Bar --- */
.services-filters {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.services-filters__tabs {
    display: flex;
    gap: var(--space-1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}

.services-filters__tabs::-webkit-scrollbar {
    display: none;
}

.services-filter-tab {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    background: var(--surface-secondary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--duration-fast);
    border: 1px solid transparent;
}

.services-filter-tab:hover {
    background: var(--surface-tertiary);
    color: var(--text-primary);
}

.services-filter-tab--active {
    background: var(--accent-primary-subtle);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.services-filters__house {
    flex-shrink: 0;
}

.services-house-select {
    padding: var(--space-2) var(--space-3);
    background: var(--surface-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: var(--space-8);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.services-house-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* --- Owned Services Banner --- */
.services-owned-banner {
    background: var(--surface-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    margin-bottom: var(--space-4);
}

.services-owned-banner__header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.services-owned-banner__icon {
    font-size: var(--text-base);
}

.services-owned-banner__title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    flex: 1;
}

.services-owned-banner__link {
    font-size: var(--text-xs);
    color: var(--accent-primary);
    text-decoration: none;
}

.services-owned-banner__link:hover {
    text-decoration: underline;
}

.services-owned-banner__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.services-owned-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: var(--surface-tertiary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--duration-fast);
}

.services-owned-chip:hover {
    background: var(--accent-primary-subtle);
    color: var(--accent-primary);
}

.services-owned-chip__icon {
    display: inline-flex;
    align-items: center;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-4);
}

/* --- Empty State --- */
.services-empty {
    text-align: center;
    padding: var(--space-12) var(--space-4);
}

.services-empty__icon {
    font-size: 3rem;
    margin-bottom: var(--space-3);
}

.services-empty__title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
}

.services-empty__text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0 0 var(--space-4) 0;
}

.services-empty__reset {
    display: inline-flex;
    padding: var(--space-2) var(--space-4);
    background: var(--accent-primary-subtle);
    color: var(--accent-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}


/* =============================================================================
   7. MARKETPLACE CARD
   Used on the /services browse page
   ============================================================================= */
.marketplace-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-card);
    transition: transform var(--duration-normal) var(--ease-default),
                box-shadow var(--duration-normal) var(--ease-default),
                border-color var(--duration-normal) var(--ease-default);
}

.marketplace-card:hover {
    transform: translateY(calc(-1 * var(--space-1)));
    box-shadow: var(--shadow-lg);
    border-color: var(--border-default);
}

.marketplace-card--owned {
    border-color: var(--status-success);
    opacity: 0.92;
}

.marketplace-card--owned:hover {
    border-color: var(--status-success);
    opacity: 1;
}

/* Image area */
.marketplace-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    background: var(--surface-secondary);
}

.marketplace-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.marketplace-card__image--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface-tertiary), var(--surface-secondary));
}

.marketplace-card__image-icon {
    font-size: var(--text-5xl);
    color: var(--text-muted);
    line-height: 1;
}

.marketplace-card__image-icon iconify-icon,
.marketplace-card__image-icon svg {
    width: var(--space-12);
    height: var(--space-12);
    color: var(--text-muted);
}

/* Type pill — solid chip with light surface, themed text */
.marketplace-card__type {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    background: var(--surface-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.marketplace-card__type iconify-icon {
    font-size: var(--text-sm);
}

.marketplace-card__type--quest { color: var(--color-cyan-600, var(--color-cyan-500)); }
.marketplace-card__type--game { color: var(--color-purple-500); }
.marketplace-card__type--lottery { color: var(--color-yellow-600, var(--color-yellow-400)); }
.marketplace-card__type--matchmaking { color: var(--color-purple-500); }
.marketplace-card__type--ride-pledge { color: var(--status-success); }

/* Owned badge */
.marketplace-card__owned-badge {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    background: var(--status-success);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

/* Body */
.marketplace-card__body {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.marketplace-card__house {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-1);
}

.marketplace-card__house iconify-icon {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.marketplace-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
    line-height: var(--leading-tight);
}

.marketplace-card__desc {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-snug);
    margin: var(--space-1) 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.marketplace-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--border-subtle);
    background: var(--surface-secondary);
}

.marketplace-card__price {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.marketplace-card__price--free {
    color: var(--status-success);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.marketplace-card__price-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: var(--text-base);
    line-height: 1;
}

.marketplace-card__price-icon iconify-icon {
    font-size: var(--text-base);
}

.marketplace-card__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: var(--accent-primary);
    color: var(--color-dark-900);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: filter var(--duration-fast) var(--ease-default),
                background var(--duration-fast) var(--ease-default);
}

.marketplace-card:hover .marketplace-card__cta {
    filter: brightness(1.05);
}

.marketplace-card__cta--owned {
    background: var(--surface-tertiary);
    color: var(--text-muted);
}

.marketplace-card__cta--free {
    background: var(--status-success);
    color: var(--color-white);
}

.marketplace-card__cta--disabled {
    background: var(--surface-tertiary);
    color: var(--text-muted);
}


/* =============================================================================
   SERVICE DETAIL PAGE
   ============================================================================= */

.service-detail-page {
    padding: var(--space-4);
    max-width: 600px;
    margin: 0 auto;
}

/* Back link */
.service-detail__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: var(--space-4);
    transition: color var(--duration-fast);
}

.service-detail__back:hover {
    color: var(--accent-primary);
}

/* Hero */
.service-detail__hero {
    position: relative;
    margin-bottom: var(--space-4);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.service-detail__hero-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--surface-secondary);
}

.service-detail__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail__hero-image--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface-tertiary), var(--surface-secondary));
}

.service-detail__hero-icon {
    font-size: var(--text-5xl);
    color: var(--text-muted);
}

.service-detail__hero-icon [data-lucide],
.service-detail__hero-icon svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
}

.service-detail__hero-badges {
    position: absolute;
    bottom: var(--space-3);
    left: var(--space-3);
    display: flex;
    gap: var(--space-2);
}

.service-detail__type-badge {
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    backdrop-filter: blur(4px);
}

.service-detail__type-badge--quest { color: var(--color-cyan-400); }
.service-detail__type-badge--game { color: var(--color-purple-500); }
.service-detail__type-badge--lottery { color: var(--color-yellow-400); }
.service-detail__type-badge--matchmaking { color: var(--color-purple-200); }
.service-detail__type-badge--ride-pledge { color: var(--color-green-400); }

.service-detail__owned-badge {
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    background: var(--status-success);
    color: var(--color-dark-900);
}

/* Content */
.service-detail__content {
    padding: 0;
}

.service-detail__house {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.service-detail__title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0 0 var(--space-3) 0;
    line-height: var(--leading-tight);
}

.service-detail__description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-4) 0;
}

/* Stats row */
.service-detail__stats {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-3);
    background: var(--surface-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.service-detail__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.service-detail__stat-value {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--accent-primary);
    margin-bottom: 2px;
}

.service-detail__stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Owned section */
.service-detail__owned-section {
    background: var(--surface-secondary);
    border: 1px solid var(--status-success);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.service-detail__owned-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--status-success);
    margin-bottom: var(--space-3);
}

.service-detail__owned-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--status-success);
}

/* Progress bar */
.service-detail__progress {
    margin-bottom: var(--space-3);
}

.service-detail__progress-header {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.service-detail__progress-bar {
    height: 8px;
    background: var(--surface-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.service-detail__progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    transition: width var(--duration-slow);
}

.service-detail__claim-btn {
    width: 100%;
    padding: var(--space-3);
    background: var(--accent-primary);
    color: var(--color-dark-900);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.service-detail__claim-btn:hover {
    filter: brightness(1.1);
}

.service-detail__claim-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.service-detail__maxed {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--status-success);
    font-weight: var(--font-semibold);
    padding: var(--space-2);
}

/* Lottery info */
.service-detail__lottery-info {
    background: var(--surface-secondary);
    border: 1px solid var(--color-yellow-400);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    text-align: center;
}

.service-detail__lottery-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.service-detail__lottery-prize {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-yellow-400);
}

/* Matchmaking teaser */
.service-detail__matchmaking-teaser {
    background: var(--surface-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* Purchase section */
.service-detail__purchase {
    background: var(--surface-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.service-detail__purchase-info {
    margin-bottom: var(--space-3);
}

.service-detail__purchase-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.service-detail__purchase-row:last-child {
    border-bottom: none;
}

.service-detail__purchase-row--after {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.service-detail__buy-btn {
    width: 100%;
    padding: var(--space-3);
    background: var(--accent-primary);
    color: var(--color-dark-900);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.service-detail__buy-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 243, 255, 0.3);
}

.service-detail__buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.service-detail__buy-btn--free {
    background: var(--status-success);
}

.service-detail__insufficient {
    font-size: var(--text-xs);
    color: var(--status-error);
    text-align: center;
    margin-top: var(--space-2);
}

/* Related services */
.service-detail__related {
    margin-top: var(--space-6);
}

.service-detail__related-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--space-3) 0;
}

.service-detail__related-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.service-detail__related-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--surface-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--duration-fast);
}

.service-detail__related-item:hover {
    border-color: var(--accent-primary);
    background: var(--surface-tertiary);
}

.service-detail__related-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.service-detail__related-name {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.service-detail__related-cost {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--accent-primary);
}

/* Toast notification */
.service-detail__toast {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    z-index: var(--z-toast);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-xl);
}

.service-detail__toast--success {
    background: var(--status-success);
    color: var(--color-dark-900);
}

.service-detail__toast--error {
    background: var(--status-error);
    color: var(--color-white);
}


/* =============================================================================
   MATCHMAKING FORM
   ============================================================================= */

.matchmaking-form {
    background: var(--surface-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.matchmaking-form__title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--space-1) 0;
}

.matchmaking-form__subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0 0 var(--space-4) 0;
}

.matchmaking-form__field {
    margin-bottom: var(--space-4);
}

.matchmaking-form__label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.matchmaking-form__select,
.matchmaking-form__textarea {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    background: var(--surface-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    box-sizing: border-box;
}

.matchmaking-form__select:focus,
.matchmaking-form__textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.matchmaking-form__textarea {
    resize: vertical;
    min-height: 60px;
}

.matchmaking-form__submit {
    width: 100%;
    padding: var(--space-3);
    background: var(--color-purple-600);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.matchmaking-form__submit:hover {
    filter: brightness(1.1);
}

.matchmaking-form__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.matchmaking-form__message {
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

.matchmaking-form__message--success {
    background: var(--status-success-subtle);
    color: var(--status-success);
}

.matchmaking-form__message--error {
    background: var(--status-error-subtle);
    color: var(--status-error);
}


/* =============================================================================
   OWNED SERVICES LIST (partial)
   ============================================================================= */

.owned-services__title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--space-3) 0;
}

.owned-services__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.owned-services__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    background: var(--surface-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--duration-fast);
}

.owned-services__item:hover {
    border-color: var(--accent-primary);
}

.owned-services__item-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.owned-services__item-icon {
    font-size: var(--text-lg);
}

.owned-services__item-name {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.owned-services__item-house {
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: block;
}

.owned-services__item-stars {
    text-align: right;
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.owned-services__mini-bar {
    width: 60px;
    height: 4px;
    background: var(--surface-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 2px;
}

.owned-services__mini-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
}

.owned-services__item-status {
    font-size: var(--text-xs);
    color: var(--status-success);
    font-weight: var(--font-medium);
}

.owned-services__empty {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.owned-services__empty a {
    color: var(--accent-primary);
}


/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .marketplace-card__image {
        height: 120px;
    }

    .services-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .services-filters__tabs {
        order: 1;
    }

    .services-filters__house {
        order: 0;
    }

    .service-detail__hero-image {
        height: 160px;
    }

    .service-detail__stats {
        flex-wrap: wrap;
    }
}
