/* Seller dashboard: my services, orders, quick tasks */
.seller-page { padding: 24px 0 48px; }
.seller-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .seller-layout { grid-template-columns: 1fr; } }

.seller-sidebar { display: flex; flex-direction: column; gap: 16px; }
.seller-sidebar-card {
    background: var(--white); border-radius: 12px; padding: 20px;
    box-shadow: var(--shadow);
}
.seller-sidebar-card h3 { font-size: 0.95rem; margin-bottom: 12px; }
.seller-nav { list-style: none; }
.seller-nav li { margin-bottom: 4px; }
.seller-nav a {
    display: block; padding: 10px 12px; border-radius: 8px;
    color: var(--text-secondary); font-size: 0.9rem;
}
.seller-nav a.active, .seller-nav a:hover { background: var(--primary-light); color: var(--primary); font-weight: 500; }
.seller-nav .count { float: right; color: var(--text-muted); font-size: 0.8rem; }

.btn-earn-green {
    display: block; width: 100%; padding: 14px; border: none; border-radius: 10px;
    background: #00C853; color: #fff; font-weight: 600; text-align: center; cursor: pointer;
}
.btn-earn-green:hover { background: #00B248; color: #fff; }

.seller-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}
.seller-sidebar-link:hover { color: var(--primary); box-shadow: var(--shadow-lg); }
.seller-sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(1, 119, 255, 0.15);
}
.seller-sidebar-link i { color: var(--primary); }

.portfolio-sidebar-tip {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.portfolio-sidebar-tip h3 {
    font-size: 0.92rem;
    margin-bottom: 8px;
    color: var(--text);
}

.seller-main { min-width: 0; }
.seller-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 20px;
}
.seller-toolbar h1 { font-size: 1.5rem; margin: 0; }
.seller-search {
    display: flex; align-items: center; gap: 8px; background: var(--white);
    border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 14px; min-width: 240px;
}
.seller-search input { border: none; outline: none; width: 100%; font-size: 0.9rem; }

.seller-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.seller-tabs a {
    padding: 8px 16px; border-radius: 20px; background: var(--white);
    color: var(--text-secondary); font-size: 0.9rem; box-shadow: var(--shadow);
}
.seller-tabs a.active { background: var(--primary); color: #fff; }
.seller-tabs .badge { background: rgba(255,255,255,.25); padding: 2px 8px; border-radius: 10px; margin-left: 4px; font-size: 0.75rem; }
.seller-tabs a:not(.active) .badge { background: var(--primary-light); color: var(--primary); }

.seller-toggles { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; font-size: 0.9rem; }
.seller-toggle { display: flex; align-items: center; gap: 10px; }
.seller-switch {
    width: 44px; height: 24px; border-radius: 12px; background: #ddd; position: relative; cursor: pointer; border: none;
}
.seller-switch.on { background: #00C853; }
.seller-switch::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
    border-radius: 50%; background: #fff; transition: .2s;
}
.seller-switch.on::after { left: 23px; }

/* Service cards list */
.my-services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.my-service-card {
    display: grid;
    grid-template-columns: auto 200px 1fr auto;
    gap: 20px;
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
    align-items: start;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.my-service-card.is-dragging {
    opacity: 0.45;
}
.my-service-card.is-drag-over {
    box-shadow: 0 0 0 2px var(--primary), var(--shadow);
}
.my-service-drag {
    width: 28px;
    height: 44px;
    margin-top: 24px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: grab;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    touch-action: none;
}
.my-service-drag:active { cursor: grabbing; }
.my-service-drag:hover {
    background: #f3f4f6;
    color: var(--text-secondary);
}
@media (max-width: 768px) {
    .my-service-card { grid-template-columns: auto 1fr; }
    .my-service-thumb { grid-column: 1 / -1; }
    .my-service-side { grid-column: 1 / -1; text-align: left; }
    .my-service-drag { margin-top: 0; height: 36px; }
}
@media (min-width: 769px) {
    .my-service-card:not(:has(.my-service-drag)) {
        grid-template-columns: 200px 1fr auto;
    }
}
.my-service-thumb { border-radius: 8px; overflow: hidden; aspect-ratio: 16/10; background: #eee; }
.my-service-thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-service-body h3 { font-size: 1rem; margin-bottom: 8px; }
.my-service-body h3 a { color: inherit; }
.my-service-stats {
    display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 8px;
}
.my-service-stats strong { display: block; color: var(--text); font-size: 0.95rem; }
.my-service-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }
.my-service-side { text-align: right; min-width: 120px; }
.my-service-price { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.my-service-actions { display: flex; gap: 8px; justify-content: flex-end; }
.my-service-actions button, .my-service-actions a {
    width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--white); color: var(--text-secondary); display: inline-flex;
    align-items: center; justify-content: center; cursor: pointer;
}
.my-service-actions a:hover, .my-service-actions button:hover { border-color: var(--primary); color: var(--primary); }
.my-service-actions .my-service-delete-btn:hover { border-color: var(--red, #e53935); color: var(--red, #e53935); }
.my-service-status { font-size: 0.75rem; padding: 4px 8px; border-radius: 6px; display: inline-block; margin-bottom: 8px; }
.status-active { background: #E8F5E9; color: #2E7D32; }
.status-paused { background: #FFF3E0; color: #E65100; }
.status-pending { background: #E3F2FD; color: #1565C0; }
.status-revision { background: #FFF8E1; color: #F57F17; }
.status-rejected { background: #FFEBEE; color: #C62828; }
.status-draft { background: #F5F5F5; color: #666; }
.my-service-reason {
    font-size: 0.82rem; color: #b45309; background: #fff8e1; border-radius: 8px;
    padding: 8px 10px; margin: 0 0 8px; line-height: 1.4;
}

.seller-toggle-form { display: contents; }
.seller-toggle-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.seller-toggle-note {
    width: 100%; margin: 0; font-size: 0.82rem; color: #1565c0;
}
.seller-sort-hint {
    font-size: 0.82rem; color: var(--text-muted); margin: 0 0 16px;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.seller-sort-saved {
    color: #2e7d32;
    font-weight: 600;
    animation: sellerSortSaved 0.25s ease;
}
@keyframes sellerSortSaved {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.seller-help-tip {
    position: relative; display: inline-flex; color: var(--text-muted); cursor: help;
}
.seller-help-tip:hover,
.seller-help-tip:focus,
.seller-help-tip:focus-within {
    z-index: 350;
}
.seller-help-tip > i { font-size: 0.9rem; }
.seller-help-tooltip {
    position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
    width: min(280px, 70vw); padding: 10px 12px; border-radius: 8px;
    background: #1f2937; color: #fff; font-size: 0.78rem; line-height: 1.45;
    box-shadow: 0 8px 24px rgba(0,0,0,.18); opacity: 0; visibility: hidden;
    pointer-events: none; transition: opacity .15s, visibility .15s; z-index: 351;
}
.seller-help-tip:hover .seller-help-tooltip,
.seller-help-tip:focus .seller-help-tooltip,
.seller-help-tip:focus-within .seller-help-tooltip {
    opacity: 1; visibility: visible;
}

.import-box { font-size: 0.85rem; color: var(--text-secondary); }
.import-box h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: var(--text);
}
.import-box > p {
    margin: 0;
    line-height: 1.45;
}
.import-kwork-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}
.import-kwork-input {
    width: 100%;
    padding: 11px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.84rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
    box-sizing: border-box;
}
.import-kwork-input::placeholder {
    color: var(--text-muted);
    font-size: 0.78rem;
}
.import-kwork-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(1, 119, 255, 0.08);
}
.import-kwork-submit {
    margin-top: 2px;
}
.import-logos { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.import-logos span {
    width: 36px; height: 36px; border-radius: 8px; background: var(--bg);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; color: var(--text-muted);
}

/* Orders table */
.orders-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
@media (max-width: 768px) { .orders-layout { grid-template-columns: 1fr; } }
.orders-filter-card {
    background: var(--white); border-radius: 12px; padding: 16px; box-shadow: var(--shadow);
}
.orders-filter-card a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; border-radius: 8px;
    color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 4px;
}
.orders-filter-card a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.orders-filter-card a.orders-filter-secondary {
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
    font-size: 0.85rem; color: var(--text-muted);
}
.orders-filter-card a.orders-filter-secondary.active {
    color: var(--primary); font-weight: 600;
}
.orders-filter-card .cnt {
    background: #00C853; color: #fff; font-size: 0.75rem; padding: 2px 8px; border-radius: 10px;
}
.orders-table-wrap {
    background: var(--white); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.orders-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.orders-table th {
    text-align: left; padding: 14px 16px; background: var(--bg); color: var(--text-secondary);
    font-weight: 500; font-size: 0.8rem;
}
.orders-table td { padding: 14px 16px; border-top: 1px solid var(--border); }
.orders-table tr:hover td { background: #fafbfc; }
.orders-empty { padding: 48px 24px; text-align: center; color: var(--text-secondary); }
.orders-empty p { margin-top: 8px; font-size: 0.9rem; }
.orders-exchange-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 10px;
    background: #fff3e0;
    color: #e65100;
    font-size: 0.68rem;
    font-weight: 700;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Quick tasks earn */
.quick-earn-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
@media (max-width: 900px) { .quick-earn-layout { grid-template-columns: 1fr; } }
.quick-filter-group { margin-bottom: 20px; }
.quick-filter-group h4 { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; }
.quick-price-range { width: 100%; accent-color: #00C853; }
.quick-stats-chart {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 12px;
    background: conic-gradient(#00C853 0 60%, #0177FF 60% 100%);
}
.quick-stats-list { font-size: 0.85rem; color: var(--text-secondary); }
.quick-stats-list div { display: flex; justify-content: space-between; padding: 4px 0; }

.quick-task-item {
    background: var(--white); border-radius: 12px; padding: 20px; margin-bottom: 16px;
    box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start;
}
@media (max-width: 640px) { .quick-task-item { grid-template-columns: 1fr; } }
.quick-task-price { font-size: 1.5rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.quick-task-req {
    margin-top: 12px; padding: 12px; background: var(--bg); border-radius: 8px;
    font-size: 0.85rem; color: var(--text-secondary);
}
.quick-task-req strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 0.8rem; }
.btn-do-task {
    display: inline-block; padding: 12px 28px; background: #00C853; color: #fff;
    border: none; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 12px;
}
.btn-do-task:hover { background: #00B248; color: #fff; }
.quick-info-box {
    background: var(--bg); border-radius: 10px; padding: 16px; margin-bottom: 20px;
    font-size: 0.9rem; color: var(--text-secondary);
}

/* Seller availability notices */
.seller-status-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.seller-status-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.seller-status-copy strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.seller-status-copy p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
}

.seller-status-vacation {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fdba74;
    color: #9a3412;
}

.seller-status-vacation .seller-status-icon {
    background: #ffedd5;
    color: #ea580c;
}

.seller-status-weekend {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    color: #1e40af;
}

.seller-status-weekend .seller-status-icon {
    background: #dbeafe;
    color: #2563eb;
}

.seller-status-weekend-muted {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475467;
}

.seller-status-weekend-muted .seller-status-icon {
    background: #eef2ff;
    color: #4f46e5;
}

.seller-toast-stack {
    position: fixed;
    top: 84px;
    right: 20px;
    z-index: 1200;
    width: min(390px, calc(100vw - 32px));
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seller-toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    gap: 14px;
    padding: 16px 44px 16px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e8eaed;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.14);
    overflow: hidden;
    animation: sellerToastIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.seller-toast.is-closing {
    animation: sellerToastOut 0.26s ease forwards;
}

.seller-toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.seller-toast-body { min-width: 0; }

.seller-toast-title {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text);
}

.seller-toast-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.seller-toast-hint {
    margin: 8px 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.seller-toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.seller-toast-close:hover {
    background: var(--bg);
    color: var(--text);
}

.seller-toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    transform-origin: left center;
    animation: sellerToastProgress 7s linear forwards;
}

.seller-toast-vacation { border-left: 4px solid #f97316; }
.seller-toast-vacation .seller-toast-icon { background: #ffedd5; color: #ea580c; }
.seller-toast-vacation .seller-toast-progress { background: linear-gradient(90deg, #fb923c, #f97316); }

.seller-toast-success { border-left: 4px solid #00C853; }
.seller-toast-success .seller-toast-icon { background: #e8f5e9; color: #2e7d32; }
.seller-toast-success .seller-toast-progress { background: linear-gradient(90deg, #69f0ae, #00C853); }

.seller-toast-weekend { border-left: 4px solid #3b82f6; }
.seller-toast-weekend .seller-toast-icon { background: #dbeafe; color: #2563eb; }
.seller-toast-weekend .seller-toast-progress { background: linear-gradient(90deg, #60a5fa, #3b82f6); }

.seller-toast-info { border-left: 4px solid #6366f1; }
.seller-toast-info .seller-toast-icon { background: #eef2ff; color: #4f46e5; }
.seller-toast-info .seller-toast-progress { background: linear-gradient(90deg, #818cf8, #6366f1); }

.seller-toast-error { border-left: 4px solid #ef4444; }
.seller-toast-error .seller-toast-icon { background: #fee2e2; color: #dc2626; }
.seller-toast-error .seller-toast-progress { background: linear-gradient(90deg, #f87171, #ef4444); }

@keyframes sellerToastIn {
    from { opacity: 0; transform: translateX(24px) scale(0.96); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes sellerToastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(18px); }
}

@keyframes sellerToastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 768px) {
    .seller-toast-stack {
        top: auto;
        bottom: calc(var(--bottom-nav-h) + 16px);
        right: 12px;
        left: 12px;
        width: auto;
    }
}


.header-balance-block { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; margin-right: 8px; }
.header-balance-amount { font-size: 0.95rem; }
.header-balance-link { font-size: 0.75rem; color: var(--primary); }

.seller-modal-overlay {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(15, 23, 42, 0.45);
}
.seller-modal-overlay[hidden] { display: none; }
.seller-modal {
    width: 100%; max-width: 420px; background: var(--white, #fff);
    border-radius: 12px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
.seller-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 18px 20px 0;
}
.seller-modal-header h3 { margin: 0; font-size: 1.05rem; }
.seller-modal-close {
    width: 32px; height: 32px; border: none; border-radius: 8px;
    background: transparent; color: var(--text-secondary); cursor: pointer;
}
.seller-modal-close:hover { background: #f3f4f6; color: var(--text); }
.seller-modal-body { padding: 12px 20px 0; color: var(--text-secondary); line-height: 1.5; }
.seller-modal-footer {
    display: flex; justify-content: flex-end; align-items: center; gap: 10px;
    padding: 20px;
}
.seller-modal-footer .btn-danger {
    background: #e53935; border-color: #e53935; color: #fff;
}
.seller-modal-footer .btn-danger:hover {
    background: #c62828; border-color: #c62828; color: #fff;
}
body.seller-modal-open { overflow: hidden; }
