/* Events Gate Admin — pixel-perfect mockup theme */

/* ponytail: U+20C1 missing from system fonts → bundled Saudi Riyal glyph */
@font-face {
    font-family: "SaudiRiyal";
    src: url("/fonts/saudi_riyal.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+20C1, U+E900;
}

@font-face {
    font-family: "SaudiRiyal";
    src: url("/fonts/saudi_riyal_bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+20C1, U+E900;
}

:root {
    --eg-bg: #f5f7fa;
    --eg-card: #ffffff;
    --eg-border: #e8edf2;
    --eg-shadow: 0 2px 12px rgba(46, 73, 78, 0.06);
    --eg-gold: #ceab7d;
    --eg-gold-bg: #faf6f0;
    --eg-teal: #2e494e;
    --eg-text-muted: #94a3b8;
    --eg-text-body: #64748b;
    --eg-radius: 14px;
}

.fi-body {
    background-color: var(--eg-bg) !important;
    /* unicode-range limits SaudiRiyal to ⃁; children inherit when they don't override */
    font-family: "SaudiRiyal", Cairo, ui-sans-serif, system-ui, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji";
}

/* Auth pages: explicit contrast if fi-text-color-* chain fails */
.fi-simple-page .fi-btn.fi-color-primary:not(.fi-outlined) {
    background-color: var(--eg-teal) !important;
    color: #fff !important;
}

.fi-simple-page .fi-btn.fi-color-primary:not(.fi-outlined):hover {
    background-color: #243b3f !important;
    color: #fff !important;
}

.fi-simple-page .fi-btn.fi-color-primary:not(.fi-outlined) .fi-icon {
    color: #fff !important;
}

/* Auth pages: full-width submit + label fallback when Alpine x-show breaks */
.fi-simple-page .fi-ac.fi-width-full .fi-ac-btn-action {
    width: 100%;
    min-height: 2.25rem;
}

/* ponytail: when filamentFormButton never registers, x-show hides the label and the button collapses to ~16px */
.fi-simple-page .fi-ac-btn-action:not(.fi-processing) > span:not([x-text]) {
    display: inline !important;
    color: #fff !important;
}

.fi-main {
    background-color: var(--eg-bg);
}

.fi-page-content {
    padding-top: 0.5rem;
}

.fi-header-heading {
    font-weight: 800;
    font-size: 1.375rem;
    color: var(--eg-teal);
}

.fi-sidebar {
    background: var(--eg-card) !important;
    border-inline-start: 1px solid var(--eg-border);
}

.fi-sidebar-nav {
    padding-inline: 0.875rem;
    padding-block: 1.25rem;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: var(--eg-gold-bg) !important;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon {
    color: var(--eg-gold) !important;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-label {
    color: var(--eg-teal) !important;
    font-weight: 700;
}

.fi-sidebar-item-btn {
    border-radius: 10px;
    padding: 0.625rem 0.75rem;
}

.fi-sidebar-item-label {
    font-weight: 600;
    font-size: 0.875rem;
}

.fi-topbar {
    background-color: var(--eg-card) !important;
    border-bottom: 1px solid var(--eg-border);
    box-shadow: none !important;
    min-height: 4rem;
}

.fi-topbar .fi-global-search-field {
    max-width: 22rem;
}

.fi-global-search-field .fi-input-wrp {
    border-radius: 999px;
    background: #f8fafc;
    border-color: var(--eg-border);
}

.eg-widget.fi-wi-widget {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Unified filter banner */
.eg-filter-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--eg-card);
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius);
    box-shadow: var(--eg-shadow);
    padding: 0.875rem 1.25rem;
    margin-bottom: 1.5rem;
}

.eg-filter-banner__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--eg-teal);
    font-weight: 700;
    font-size: 0.9375rem;
}

.eg-filter-banner__label svg {
    color: var(--eg-gold);
}

.eg-filter-banner__options {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #f5f7fa;
    border: 1px solid var(--eg-border);
    border-radius: 999px;
    padding: 0.25rem;
}

.eg-filter-pill {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--eg-text-body);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.eg-filter-pill:hover {
    color: var(--eg-teal);
}

.eg-filter-pill--active {
    background: var(--eg-card);
    color: var(--eg-teal);
    box-shadow: 0 1px 3px rgba(46, 73, 78, 0.12);
}

.eg-filter-pill--active:hover {
    color: var(--eg-teal);
}

.eg-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
}

@media (min-width: 768px) {
    .eg-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .eg-stats-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .eg-stats-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.eg-order-list-header {
    margin-bottom: 1.5rem;
}

.eg-order-list-header .eg-filter-banner {
    margin-bottom: 1.25rem;
}

.eg-stat-card {
    position: relative;
    background: var(--eg-card);
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius);
    box-shadow: var(--eg-shadow);
    padding: 1.125rem 1.25rem 1.25rem;
    min-height: 8.5rem;
}

.eg-stat-card__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.875rem;
    margin-top: 1.75rem;
    flex-direction: row;
}

.eg-stat-card__content {
    flex: 1;
    min-width: 0;
    text-align: start;
}

.eg-stat-card__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--eg-text-body);
    margin-bottom: 0.5rem;
}

.eg-stat-card__value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--eg-teal);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.eg-stat-card__icon {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eg-stat-card__icon--blue {
    background: #eff6ff;
    color: #3498db;
}

.eg-stat-card__icon--teal {
    background: #f0f6f7;
    color: var(--eg-teal);
}

.eg-stat-card__icon--purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.eg-stat-card__icon--gray {
    background: #f3f4f6;
    color: #9ca3af;
}

.eg-stat-card__content--breakdown .eg-stat-card__label {
    margin-bottom: 0.625rem;
}

.eg-stat-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.eg-stat-card__row-label {
    color: var(--eg-text-body);
    font-weight: 500;
}

.eg-stat-card__row-value {
    font-weight: 700;
    color: var(--eg-teal);
}

.eg-panel-card {
    background: var(--eg-card);
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius);
    box-shadow: var(--eg-shadow);
    overflow: hidden;
    height: 100%;
}

.eg-panel-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--eg-border);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--eg-teal);
}

.eg-panel-card__body {
    padding: 0.75rem 1rem 1rem;
}

.eg-panel-card--chart .eg-panel-card__body {
    padding: 0.5rem 1rem 1.25rem;
    min-height: 260px;
}

.eg-order-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eg-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--eg-border);
}

.eg-order-item:last-child {
    border-bottom: none;
}

.eg-order-item__main {
    flex: 1;
    min-width: 0;
}

.eg-order-item__start {
    flex: 1;
    min-width: 0;
    text-align: start;
}

.eg-order-item__end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.375rem;
    flex-shrink: 0;
}

.eg-order-item__top {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 0.375rem;
}

.eg-order-item__date {
    font-size: 0.75rem;
    color: var(--eg-text-muted);
    font-weight: 500;
}

.eg-order-item__num {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--eg-teal);
    direction: ltr;
    text-align: start;
    unicode-bidi: embed;
    margin-bottom: 0.25rem;
}

.eg-order-item__price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--eg-teal);
    white-space: nowrap;
}

.eg-order-item--empty {
    justify-content: center;
    color: var(--eg-text-muted);
    font-size: 0.875rem;
}

.eg-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.625rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.4;
}

.eg-badge--pending {
    background: #fef3c7;
    color: #d97706;
}

.eg-badge--progress {
    background: #dbeafe;
    color: #2563eb;
}

.eg-badge--completed {
    background: #d1fae5;
    color: #059669;
}

.eg-badge--cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.eg-badge--accepted {
    background: #dbeafe;
    color: #2563eb;
}

.fi-wi-chart-canvas-ctn {
    min-height: 220px;
}

.eg-chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    gap: 1rem;
    color: var(--eg-text-muted);
    font-size: 0.875rem;
}

.eg-chart-empty__ring {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    border: 1.25rem solid #f0f6f7;
    border-top-color: var(--eg-gold);
}

/* ── Provider overview ─────────────────────────────────────── */

.eg-provider-overview {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.eg-provider-overview__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .eg-provider-overview__top {
        grid-template-columns: 1.4fr 1fr;
    }
}

.eg-provider-profile,
.eg-provider-stats > .eg-provider-stat {
    background: var(--eg-card);
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius);
    box-shadow: var(--eg-shadow);
}

.eg-provider-profile {
    padding: 1.25rem 1.5rem;
}

.eg-provider-profile__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.eg-provider-profile__avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--eg-gold-bg);
    color: var(--eg-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.eg-provider-profile__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg-provider-profile__name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--eg-teal);
    margin: 0 0 0.5rem;
}

.eg-provider-profile__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.eg-pbadge {
    display: inline-flex;
    padding: 0.15rem 0.625rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
}

.eg-pbadge--success { background: #d1fae5; color: #059669; }
.eg-pbadge--danger { background: #fee2e2; color: #dc2626; }
.eg-pbadge--warning { background: #fef3c7; color: #d97706; }
.eg-pbadge--gold { background: var(--eg-gold-bg); color: #92703a; }

.eg-provider-profile__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.625rem;
}

.eg-provider-profile__meta li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--eg-text-body);
}

.eg-provider-profile__meta svg {
    color: var(--eg-gold);
    flex-shrink: 0;
}

.eg-provider-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

.eg-provider-stat {
    padding: 1rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.eg-provider-stat__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--eg-text-body);
}

.eg-provider-stat__value {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--eg-teal);
}

.eg-provider-stat--blue { border-top: 3px solid #3498db; }
.eg-provider-stat--green { border-top: 3px solid #059669; }
.eg-provider-stat--yellow { border-top: 3px solid #d97706; }
.eg-provider-stat--red { border-top: 3px solid #dc2626; }

.eg-provider-overview__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 1200px) {
    .eg-provider-overview__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.eg-provider-overview__col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.eg-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--eg-gold);
    text-decoration: none;
}

.eg-link:hover { text-decoration: underline; }

.eg-select-sm {
    border: 1px solid var(--eg-border);
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-family: inherit;
    color: var(--eg-teal);
    background: #fff;
}

.eg-provider-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.875rem;
}

.eg-provider-service-card {
    border: 1px solid var(--eg-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.eg-provider-service-card__image {
    aspect-ratio: 4 / 3;
    background: #f8fafc;
}

.eg-provider-service-card__image img,
.eg-provider-service-card__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg-provider-service-card__placeholder {
    background: linear-gradient(135deg, #f0f6f7, #faf6f0);
}

.eg-provider-service-card__info {
    padding: 0.625rem 0.75rem;
}

.eg-provider-service-card__name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--eg-teal);
    margin: 0 0 0.25rem;
}

.eg-provider-service-card__price {
    font-size: 0.75rem;
    color: var(--eg-gold);
    font-weight: 700;
    margin: 0;
}

.eg-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 200px;
    padding-top: 0.5rem;
}

.eg-bar-chart__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
}

.eg-bar-chart__bar-wrap {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.eg-bar-chart__bar {
    width: 70%;
    max-width: 2.5rem;
    background: var(--eg-gold);
    border-radius: 8px 8px 4px 4px;
    min-height: 4px;
}

.eg-bar-chart__label {
    font-size: 0.625rem;
    color: var(--eg-text-body);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eg-bar-chart__value {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--eg-teal);
}

.eg-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
}

.eg-portfolio-grid__item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.eg-portfolio-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg-verification-doc {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    border: 1px solid var(--eg-border);
    border-radius: 12px;
    background: #fafbfc;
}

.eg-verification-doc__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.eg-verification-doc__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--eg-teal);
    margin: 0 0 0.25rem;
}

.eg-verification-doc__meta {
    font-size: 0.75rem;
    color: var(--eg-text-muted);
    margin: 0;
}

.eg-activity-log {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.eg-activity-log__item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--eg-border);
}

.eg-activity-log__item:last-child { border-bottom: none; }

.eg-activity-log__dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--eg-gold);
    margin-top: 0.375rem;
    flex-shrink: 0;
}

.eg-activity-log__message {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--eg-teal);
    margin: 0 0 0.25rem;
}

.eg-activity-log__time {
    font-size: 0.75rem;
    color: var(--eg-text-muted);
    margin: 0;
}

.eg-reviews-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--eg-border);
}

@media (min-width: 640px) {
    .eg-reviews-summary {
        grid-template-columns: auto 1fr;
        align-items: center;
    }
}

.eg-reviews-summary__score {
    text-align: center;
}

.eg-reviews-summary__average {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--eg-teal);
    line-height: 1;
}

.eg-reviews-summary__count {
    font-size: 0.75rem;
    color: var(--eg-text-muted);
}

.eg-stars {
    color: #e2e8f0;
    letter-spacing: 0.05em;
    line-height: 1;
}

.eg-stars--sm { font-size: 0.75rem; }

.eg-star--filled { color: var(--eg-gold); }

.eg-reviews-distribution {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
}

.eg-reviews-distribution__row {
    display: grid;
    grid-template-columns: 1rem 1fr 1.5rem;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--eg-text-body);
}

.eg-reviews-distribution__bar {
    height: 0.375rem;
    background: #eef2f6;
    border-radius: 999px;
    overflow: hidden;
}

.eg-reviews-distribution__bar span {
    display: block;
    height: 100%;
    background: var(--eg-gold);
    border-radius: 999px;
}

.eg-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.eg-review-item {
    display: flex;
    gap: 0.75rem;
}

.eg-review-item__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--eg-gold-bg);
    color: var(--eg-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.eg-review-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg-review-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.eg-review-item__top strong {
    font-size: 0.8125rem;
    color: var(--eg-teal);
}

.eg-review-item__time {
    font-size: 0.6875rem;
    color: var(--eg-text-muted);
}

.eg-review-item__comment {
    font-size: 0.8125rem;
    color: var(--eg-text-body);
    margin: 0.375rem 0 0;
    line-height: 1.5;
}

.eg-work-hours__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--eg-border);
    font-size: 0.8125rem;
}

.eg-work-hours__row:last-child { border-bottom: none; }

.eg-work-hours__row span:first-child {
    font-weight: 600;
    color: var(--eg-teal);
}

.eg-work-hours__row span:last-child {
    color: var(--eg-text-muted);
}

.eg-empty-note {
    text-align: center;
    color: var(--eg-text-muted);
    font-size: 0.875rem;
    padding: 1.5rem 0;
    margin: 0;
}

/* ── Service order detail ──────────────────────────────────── */

.eg-service-order-detail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.eg-service-order-detail__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .eg-service-order-detail__top {
        grid-template-columns: 1fr 1.2fr;
    }
}

.eg-order-payment {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.eg-order-payment__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8125rem;
}

.eg-order-payment__label {
    color: var(--eg-text-body);
    font-weight: 500;
}

.eg-order-payment__value {
    color: var(--eg-teal);
    font-weight: 700;
}

.eg-order-payment__value--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
}

.eg-order-summary-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.eg-order-summary-card__num {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--eg-teal);
    margin: 0 0 0.5rem;
}

.eg-order-summary-card__price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--eg-teal);
    margin: 0;
    white-space: nowrap;
}

.eg-order-summary-card__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.625rem;
}

.eg-order-summary-card__meta li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--eg-text-body);
    line-height: 1.5;
}

.eg-order-summary-card__meta svg {
    color: var(--eg-gold);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.eg-party-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .eg-party-card:not(.eg-party-card--compact) {
        grid-template-columns: minmax(220px, 280px) 1fr;
        align-items: start;
    }
}

.eg-party-card__profile {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.eg-party-card__avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--eg-gold-bg);
    color: var(--eg-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    flex-shrink: 0;
}

.eg-party-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg-party-card__name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--eg-teal);
    margin: 0 0 0.375rem;
}

.eg-party-card__contact {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--eg-text-body);
    margin: 0.25rem 0 0;
}

.eg-party-card__contact svg {
    color: var(--eg-gold);
    flex-shrink: 0;
}

.eg-party-card__map-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--eg-teal);
    margin: 0 0 0.625rem;
}

.eg-party-card__map-label svg {
    color: var(--eg-gold);
}

.eg-party-card__map-frame {
    width: 100%;
    height: 220px;
    border: 1px solid var(--eg-border);
    border-radius: 12px;
    background: #f8fafc;
}

.eg-party-card__map-caption {
    font-size: 0.75rem;
    color: var(--eg-text-muted);
    margin: 0.5rem 0 0;
}

.eg-party-card__map-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 1px dashed var(--eg-border);
    border-radius: 12px;
    color: var(--eg-text-muted);
    font-size: 0.875rem;
    background: #fafbfc;
}

.eg-product-line {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid var(--eg-border);
    border-radius: 12px;
    background: #fafbfc;
}

.eg-product-line__image {
    width: 4rem;
    height: 4rem;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
}

.eg-product-line__image img,
.eg-product-line__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg-product-line__placeholder {
    background: linear-gradient(135deg, #f0f6f7, #faf6f0);
}

.eg-product-line__name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--eg-teal);
    margin: 0 0 0.25rem;
}

.eg-product-line__meta {
    font-size: 0.75rem;
    color: var(--eg-text-body);
    margin: 0;
}

.eg-order-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 0;
}

.eg-order-timeline__item {
    display: flex;
    gap: 0.875rem;
    position: relative;
    padding-bottom: 1.25rem;
}

.eg-order-timeline__item:last-child {
    padding-bottom: 0;
}

.eg-order-timeline__item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    inset-inline-start: 0.6875rem;
    width: 2px;
    height: calc(100% - 1rem);
    background: #e8edf2;
}

.eg-order-timeline__item--completed:not(:last-child)::before {
    background: var(--eg-gold);
}

.eg-order-timeline__marker {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
    border: 2px solid #e8edf2;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.eg-order-timeline__item--completed .eg-order-timeline__marker {
    background: var(--eg-gold);
    border-color: var(--eg-gold);
    color: #fff;
}

.eg-order-timeline__item--current .eg-order-timeline__marker {
    border-color: var(--eg-gold);
    box-shadow: 0 0 0 4px var(--eg-gold-bg);
}

.eg-order-timeline__label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--eg-teal);
    margin: 0 0 0.25rem;
}

.eg-order-timeline__time {
    font-size: 0.75rem;
    color: var(--eg-text-muted);
    margin: 0;
}

.eg-moderation-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.875rem;
    background: var(--eg-card);
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius);
    box-shadow: var(--eg-shadow);
    padding: 0.875rem 1.25rem;
    margin-bottom: 1.25rem;
}

.eg-moderation-strip__label {
    font-weight: 700;
    color: var(--eg-teal);
    font-size: 0.9375rem;
}

.eg-moderation-strip__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.eg-moderation-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.875rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid var(--eg-border);
    background: #f8fafc;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.eg-moderation-chip:hover {
    background: var(--eg-gold-bg);
    border-color: var(--eg-gold);
}

.eg-moderation-chip__count {
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--eg-teal);
}

.eg-moderation-chip__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--eg-text-body);
}

.eg-moderation-chip--warning .eg-moderation-chip__count {
    color: #d97706;
}

.eg-moderation-chip--info .eg-moderation-chip__count {
    color: #0284c7;
}

.eg-moderation-chip--danger .eg-moderation-chip__count {
    color: #dc2626;
}

.eg-stat-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eg-stat-card--link:hover {
    border-color: var(--eg-gold);
    box-shadow: 0 4px 16px rgba(46, 73, 78, 0.1);
}

.eg-order-item__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    text-decoration: none;
    color: inherit;
    padding: 0.875rem 1.25rem;
    margin: -0.875rem -1.25rem;
    border-radius: 0;
    transition: background-color 0.15s ease;
}

.eg-order-item__link:hover {
    background: #f8fafc;
}

.eg-order-item:has(.eg-order-item__link) {
    padding: 0;
}
