/* Dashboard CSS shared by my_services, my_user_services and my_amount (Cinematic dark theme, site.css tokens).
   (was inline in Views/Seller/_SellerStyles.cshtml; now a cached file) */
.seller-layout { display: grid; gap: clamp(1.25rem, 2.4vw, 1.75rem); grid-template-columns: minmax(17rem, 20rem) minmax(0, 1fr); align-items: start; }
.seller-layout > * { min-width: 0; }
.seller-layout > aside { position: sticky; top: calc(var(--hh) + 1rem); }
.seller-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.1rem, 2vw, 1.5rem); min-width: 0; }
.seller-main > * { min-width: 0; }
@media (max-width: 1000px) { .seller-layout { grid-template-columns: minmax(0, 1fr); } .seller-layout > aside { position: static; } }

/* ---------- seller card ---------- */
.seller-card { overflow: hidden; padding: 1.4rem; background: radial-gradient(120% 55% at 50% 0%, rgba(245, 197, 24, .13), transparent 62%), linear-gradient(180deg, #171513, #111010); }
.seller-card::before { content: ""; position: absolute; top: 0; inset-inline: 18%; height: 1px; background: linear-gradient(90deg, transparent, rgba(245, 197, 24, .6), transparent); pointer-events: none; }
.seller-top { display: flex; flex-direction: column; align-items: center; gap: .85rem; text-align: center; }
.seller-avatar {
    position: relative; display: block; flex: none; width: 6.75rem; height: 6.75rem; padding: 3px; border-radius: 50%;
    background: conic-gradient(from 210deg, #ffe27a, var(--gold), var(--gold-3), rgba(245, 197, 24, .25), #ffe27a);
    box-shadow: 0 0 2.25rem -.4rem rgba(245, 197, 24, .45);
}
.seller-avatar::after { content: ""; position: absolute; inset: -.45rem; border-radius: 50%; border: 1px solid rgba(245, 197, 24, .28); transition: transform .6s var(--ease-out), opacity .3s; opacity: .7; pointer-events: none; }
.seller-avatar:hover::after { transform: scale(1.06); opacity: 1; }
.seller-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 3px solid #141312; }
.seller-id { display: grid; justify-items: center; gap: .4rem; min-width: 0; }
.seller-name { font-size: 1.25rem; font-weight: 800; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.seller-name:hover { color: var(--gold-2); }
.online-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .1rem .7rem; border-radius: var(--pill); font-size: .74rem; font-weight: 800; letter-spacing: .03em; direction: ltr; border: 1px solid; }
.online-chip i { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.online-chip.on { color: #86efac; border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .12); }
.online-chip.off { color: #fca5a5; border-color: rgba(239, 68, 68, .32); background: rgba(239, 68, 68, .1); }
@media (prefers-reduced-motion: no-preference) { .online-chip.on i { animation: seller-online 1.8s ease-out infinite; } }
@keyframes seller-online { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 100% { box-shadow: 0 0 0 .4rem rgba(74, 222, 128, 0); } }

.seller-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: 1.1rem; }
.seller-meta div { display: flex; align-items: center; gap: .5rem; min-width: 0; padding: .6rem .75rem; border-radius: var(--r-sm); background: rgba(245, 197, 24, .07); border: 1px solid rgba(245, 197, 24, .16); font-weight: 700; font-size: .84rem; line-height: 1.4; color: var(--text-2); }
.seller-meta span { min-width: 0; overflow-wrap: anywhere; }
.seller-meta i { flex: none; font-size: 1.15rem; color: var(--gold); }
.seller-info { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; font-size: .93rem; max-height: 16em; overflow: auto; }
.seller-actions { display: grid; gap: .55rem; margin-top: 1.1rem; }
.seller-actions .btn { white-space: normal; text-align: center; }

/* balance: gold surface → dark text */
.seller-balance {
    position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--r); color: var(--on-gold); font-weight: 800; line-height: 1.35;
    background: var(--grad); box-shadow: 0 .9rem 2rem -1rem rgba(245, 197, 24, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
    transition: transform .5s var(--spring), box-shadow .4s;
}
.seller-balance::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translate3d(-100%, 0, 0); }
.seller-balance:hover { color: var(--on-gold); transform: translate3d(0, -2px, 0); box-shadow: 0 1.1rem 2.4rem -1rem rgba(245, 197, 24, .9), inset 0 1px 0 rgba(255, 255, 255, .45); }
.seller-balance:hover::after { transform: translate3d(100%, 0, 0); transition: transform 1s var(--ease); }
.seller-balance > span { min-width: 0; }
.seller-balance small { display: block; font-size: .74rem; font-weight: 700; color: rgba(20, 17, 10, .7); }
.seller-balance b { flex: none; font-size: 1.4rem; font-weight: 900; direction: ltr; font-variant-numeric: tabular-nums; }

@media (max-width: 1000px) {
    .seller-top { flex-direction: row; text-align: start; gap: 1rem; }
    .seller-avatar { width: 5rem; height: 5rem; }
    .seller-id { justify-items: start; }
}
@media (min-width: 600px) and (max-width: 1000px) { .seller-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 359.98px) { .seller-top { flex-direction: column; text-align: center; } .seller-id { justify-items: center; } .seller-meta { grid-template-columns: minmax(0, 1fr); } .seller-card { padding: 1.1rem; } }

/* ---------- stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.65rem, 1.2vw, 1rem); }
.stats > * { min-width: 0; }
.stats.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .stats.stats-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 299.98px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.stat { --tone: 245, 197, 24; transition: transform .5s var(--spring), box-shadow .4s var(--ease), border-color .3s; background: radial-gradient(120% 80% at 100% 0%, rgba(var(--tone), .12), transparent 60%), linear-gradient(180deg, #171513, #121110); }
[dir="rtl"] .stat { background: radial-gradient(120% 80% at 0% 0%, rgba(var(--tone), .12), transparent 60%), linear-gradient(180deg, #171513, #121110); }
.stat.ok { --tone: 74, 222, 128; } .stat.warn { --tone: 251, 191, 36; } .stat.amber { --tone: 255, 159, 28; }
.stat:hover { transform: translate3d(0, -3px, 0); border-color: rgba(var(--tone), .4); box-shadow: 0 1.2rem 2.6rem -1.4rem rgba(var(--tone), .45); }
.stat .stat-ico {
    width: 2.75rem; height: 2.75rem; margin-bottom: .75rem; display: grid; place-items: center; border-radius: 50%; font-size: 1.3rem;
    color: rgb(var(--tone)); background: rgba(var(--tone), .13); box-shadow: inset 0 0 0 1px rgba(var(--tone), .3), 0 0 1.6rem -.5rem rgba(var(--tone), .55);
}
.stat .label { line-height: 1.4; }
.stat .value { direction: ltr; text-align: start; line-height: 1.2; margin-top: .2rem; }
[dir="rtl"] .stat .value { text-align: end; }
.stat .note { margin: .45rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.stat a.cover::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 560px) { .stat { padding: 1rem; } .stat .stat-ico { width: 2.4rem; height: 2.4rem; font-size: 1.15rem; margin-bottom: .55rem; } .stat .value { font-size: 1.6rem; } }

/* ---------- toolbar (filter tabs + add) ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.toolbar .tabs { flex: 0 1 auto; min-width: 0; }
.toolbar .tabs a { display: inline-flex; align-items: center; gap: .4rem; }
.tabs a .count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.3rem; margin-inline-start: .2rem; padding: 0 .4rem; border-radius: var(--pill); font-size: .72rem; font-weight: 800; background: rgba(255, 255, 255, .08); color: var(--text-2); }
.tabs a.active .count { background: rgba(20, 17, 10, .16); color: var(--on-gold); }
@media (max-width: 640px) { .toolbar > .btn { width: 100%; } }

/* ---------- service grids beside the profile card: columns follow the column width, not the viewport ---------- */
.seller-main .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }

/* ---------- my service cards ---------- */
.my-svc .card-media .state { position: absolute; z-index: 3; top: .75rem; inset-inline-end: .75rem; max-width: calc(100% - 1.5rem); background-color: rgba(12, 11, 10, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 .5rem 1.2rem -.4rem rgba(0, 0, 0, .7); }
.my-svc .card-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; min-width: 0; }
.my-svc .icon-btn { width: 2.5rem; height: 2.5rem; font-size: 1.1rem; }
.my-svc .fav-btn { width: 2.5rem; height: 2.5rem; flex: none; }
.my-svc .meta { display: flex; align-items: center; gap: .4rem; margin-top: .25rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.my-svc .meta i { color: var(--gold); }
.my-svc .meta.review, .my-svc .meta.review i { color: var(--warning); }
.my-svc .card-title { padding-block: .15rem; } /* ≥ 24px tap height on phones */
/* small-picture notice (ServiceImageResolver.IsSoft): a link straight to the pictures step of the edit form */
.my-svc .meta.soft-pic { width: fit-content; min-height: 1.75rem; padding: .15rem .6rem; border: 1px solid rgba(245, 158, 11, .34); border-radius: 999px; background: rgba(245, 158, 11, .1); color: #fcd34d; font-size: .8rem; }
.my-svc .meta.soft-pic i { color: var(--warning); }
.my-svc .meta.soft-pic:hover { background: rgba(245, 158, 11, .18); }
.soft-alert { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1.25rem; }
.soft-alert > .ti { font-size: 1.4rem; flex: none; margin-top: .1rem; }
.soft-alert b { display: block; margin-bottom: .15rem; color: var(--text); }
.my-svc .card-footer { border-radius: 0 0 var(--r-lg) var(--r-lg); }
@media (max-width: 559.98px) { .cards > .card.my-svc { flex-direction: column; } .cards > .card.my-svc .card-media { flex: none; aspect-ratio: 16 / 9; min-height: 0; border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0; } }
