/* === Base Reset & Typography === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
    color: #1f2937; background: #f3f4f6; line-height: 1.6; min-height: 100vh;
    padding-top: 56px;
}
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; }
img { max-width: 100%; }
.app-container { min-height: calc(100vh - 56px - 80px); max-width: 1200px; margin: 0 auto; padding: 20px 16px; }

/* === Navbar === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; height: 56px;
}
.nav-logo { font-size: 18px; font-weight: 700; color: #2563eb; display: flex; align-items: center; gap: 6px; }
.nav-logo span { font-size: 22px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a, .nav-links button {
    padding: 6px 14px; border-radius: 8px; font-size: 14px;
    border: none; background: none; cursor: pointer; color: #374151; white-space: nowrap;
}
.nav-links a:hover, .nav-links button:hover { background: #f3f4f6; color: #2563eb; }
.nav-links .btn-primary { background: #2563eb; color: #fff !important; }
.nav-links .btn-primary:hover { background: #1d4ed8; }
.nav-user { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #374151; }

/* === Hero === */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff; text-align: center; padding: 60px 20px; border-radius: 16px; margin-bottom: 32px;
}
.hero h1 { font-size: 32px; margin-bottom: 12px; }
.hero p { font-size: 16px; opacity: .9; margin-bottom: 24px; }
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-sub { font-size: 16px; opacity: .85; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn, .btn-lg { font-size: 16px; padding: 12px 32px; }
.section { padding: 40px 0; }
.section-alt { background: #fff; margin: 0 -16px; padding: 40px 16px; border-radius: 12px; }

/* === Category Grid === */
.section-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; text-align: center; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-bottom: 40px; }
.category-card {
    background: #fff; border-radius: 12px; padding: 20px 12px; text-align: center;
    cursor: pointer; transition: all .2s; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(37,99,235,.12); }
.category-card .icon, .category-card .category-icon { font-size: 36px; margin-bottom: 8px; }
.category-card .name, .category-card .category-name { font-size: 15px; font-weight: 600; color: #1f2937; }
.category-card .desc, .category-card .category-desc { font-size: 12px; color: #6b7280; margin-top: 4px; }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 500;
    border: none; cursor: pointer; transition: all .15s; line-height: 1.5;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-success { background: #10b981; color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-warning:hover { background: #d97706; }
.btn-outline { background: #fff; color: #2563eb; border: 1px solid #2563eb; }
.btn-outline:hover { background: #eff6ff; }
.btn-sm { padding: 4px 12px; font-size: 13px; }
.btn-xs { padding: 2px 8px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* === Forms === */
.form-card { background: #fff; border-radius: 12px; padding: 28px 24px; box-shadow: 0 1px 3px rgba(0,0,0,.06); max-width: 560px; margin: 0 auto; }
.form-card h2 { font-size: 22px; margin-bottom: 24px; text-align: center; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: #374151; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 14px; outline: none; transition: border-color .15s; font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.required { color: #ef4444; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.checkbox-group label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }

/* === Order Cards === */
.order-card {
    background: #fff; border-radius: 12px; padding: 18px; margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06); cursor: pointer; transition: all .2s;
}
.order-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-title { font-size: 16px; font-weight: 600; color: #1f2937; }
.order-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #6b7280; margin-top: 8px; }
.order-meta span { display: flex; align-items: center; gap: 4px; }
.order-desc, .order-desc-brief { font-size: 14px; color: #4b5563; margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-no { font-size: 13px; color: #9ca3af; font-family: monospace; }
.order-title-text { font-size: 15px; font-weight: 600; color: #1f2937; margin: 6px 0; }
.order-meta-grid { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #6b7280; margin: 8px 0 12px; }
.order-tech { font-size: 13px; color: #6b7280; margin-top: 6px; }
.order-price { font-size: 15px; font-weight: 600; color: #ef4444; margin-top: 6px; }
.order-action { margin-top: 10px; }
.order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.order-card-avail { border-left: 3px solid #2563eb; }

/* === Status Badge === */
.status-badge, .badge {
    display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 500;
}
.badge-lg { padding: 4px 16px; font-size: 14px; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-accepted { background: #dbeafe; color: #1e40af; }
.status-in_progress { background: #ede9fe; color: #6d28d9; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #f3f4f6; color: #6b7280; }
.status-reviewed { background: #cffafe; color: #0e7490; }

/* === Urgency === */
.urgency-normal { color: #10b981; }
.urgency-urgent { color: #f59e0b; font-weight: 600; }
.urgency-emergency { color: #ef4444; font-weight: 700; }

/* === Tabs === */
.tab-nav { display: flex; gap: 4px; margin-bottom: 20px; overflow-x: auto; border-bottom: 2px solid #e5e7eb; padding-bottom: 0; }
.tab-item {
    padding: 8px 16px; font-size: 14px; cursor: pointer; white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -2px; color: #6b7280; transition: all .15s;
}
.tab-item:hover { color: #2563eb; }
.tab-item.active { color: #2563eb; border-bottom-color: #2563eb; font-weight: 600; }

/* === Pagination === */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pagination button {
    min-width: 36px; height: 36px; border: 1px solid #d1d5db; border-radius: 8px;
    background: #fff; cursor: pointer; font-size: 14px; transition: all .15s;
}
.pagination button:hover { border-color: #2563eb; color: #2563eb; }
.pagination button.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* === Modal === */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
    background: #fff; border-radius: 16px; padding: 28px; max-width: 500px; width: 100%;
    max-height: 80vh; overflow-y: auto; position: relative;
}
.modal h3 { font-size: 18px; margin-bottom: 16px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: #6b7280; }

/* === Star Rating === */
.star-rating { display: inline-flex; gap: 4px; font-size: 24px; cursor: pointer; }
.star-rating .star { color: #d1d5db; transition: color .1s; }
.star-rating .star.active { color: #f59e0b; }
.star-rating .star:hover, .star-rating .star:hover ~ .star { color: #fbbf24; }
.stars-display { color: #f59e0b; font-size: 16px; }

/* === Stats Grid === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
    background: #fff; border-radius: 12px; padding: 20px; text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.stat-card .stat-num { font-size: 32px; font-weight: 700; color: #2563eb; }
.stat-card .stat-label { font-size: 14px; color: #6b7280; margin-top: 4px; }

/* === Steps / Features === */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 40px; }
.step-card { text-align: center; padding: 24px 16px; }
.step-card .step-icon { font-size: 40px; margin-bottom: 10px; }
.step-card .step-num { display: inline-block; width: 28px; height: 28px; line-height: 28px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.step-card h4 { font-size: 16px; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: #6b7280; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }
.feature-card { background: #fff; border-radius: 12px; padding: 24px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.feature-card .feat-icon { font-size: 36px; margin-bottom: 10px; }
.feature-card h4 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: #6b7280; }

/* === Empty State === */
.empty-state { text-align: center; padding: 60px 20px; color: #9ca3af; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* === Toast === */
#toast-container { position: fixed; top: 68px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.toast {
    padding: 12px 20px; border-radius: 8px; color: #fff; font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15); animation: toastIn .3s ease;
    max-width: 320px;
}
.toast-success { background: #10b981; }
.toast-error { background: #ef4444; }
.toast-info { background: #2563eb; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* === Detail Page === */
.detail-card { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.detail-card h3 { font-size: 18px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; }
.detail-row { display: flex; margin-bottom: 10px; font-size: 14px; }
.detail-label { width: 90px; color: #6b7280; flex-shrink: 0; }
.detail-value { color: #1f2937; flex: 1; }
.detail-images { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.detail-images img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; }

/* === Messages === */
.msg-list { max-height: 300px; overflow-y: auto; padding: 12px; background: #f9fafb; border-radius: 8px; margin-bottom: 12px; }
.msg-item { margin-bottom: 10px; padding: 8px 12px; background: #fff; border-radius: 8px; }
.msg-item .msg-sender { font-size: 13px; font-weight: 600; color: #2563eb; }
.msg-item .msg-time { font-size: 12px; color: #9ca3af; margin-left: 8px; }
.msg-item .msg-content { font-size: 14px; margin-top: 4px; }
.msg-input-row { display: flex; gap: 8px; }
.msg-input-row input { flex: 1; }

/* === Image Upload === */
.upload-area { border: 2px dashed #d1d5db; border-radius: 8px; padding: 20px; text-align: center; cursor: pointer; transition: border-color .15s; }
.upload-area:hover { border-color: #2563eb; }
.upload-preview, .image-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.upload-preview .preview-item, .image-preview .preview-item { position: relative; width: 80px; height: 80px; }
.upload-preview .preview-item img, .image-preview .preview-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.upload-preview .preview-item .remove-btn, .image-preview .preview-item .remove-btn {
    position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
    border-radius: 50%; background: #ef4444; color: #fff; border: none; font-size: 12px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* === Timeline === */
.timeline { padding-left: 20px; border-left: 2px solid #e5e7eb; }
.timeline-item { position: relative; padding: 0 0 16px 16px; }
.timeline-item::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #2563eb; }
.timeline-item .tl-time { font-size: 12px; color: #9ca3af; }
.timeline-item .tl-text { font-size: 14px; color: #1f2937; }

/* === Table === */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.data-table th { background: #f9fafb; padding: 12px; font-size: 13px; font-weight: 600; text-align: left; color: #6b7280; }
.data-table td { padding: 12px; font-size: 14px; border-top: 1px solid #f3f4f6; }
.data-table tr:hover td { background: #f9fafb; }
.table-wrap { overflow-x: auto; margin-bottom: 20px; }
.search-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.search-bar input, .search-bar select { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }

/* === Avatar === */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #dbeafe; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: #2563eb; font-weight: 600; }

/* === Loading === */
.loading { text-align: center; padding: 40px; }
.loading::after {
    content: ''; display: inline-block; width: 32px; height: 32px;
    border: 3px solid #e5e7eb; border-top-color: #2563eb; border-radius: 50%;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Footer === */
.footer { background: #1f2937; color: #9ca3af; padding: 24px; text-align: center; font-size: 13px; }
.footer-inner p { margin-bottom: 6px; }
.footer-links a { color: #9ca3af; margin: 0 4px; }
.footer-links a:hover { color: #fff; }
.footer-email { color: #9ca3af; margin-top: 8px; }
.footer-email a { color: #60a5fa; text-decoration: none; }
.footer-email a:hover { color: #93c5fd; text-decoration: underline; }
.footer-phone { color: #9ca3af; margin-top: 6px; }
.footer-phone a { color: #60a5fa; text-decoration: none; }
.footer-phone a:hover { color: #93c5fd; text-decoration: underline; }

/* === Confirm Dialog === */
.confirm-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
    z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: confirmFadeIn .2s ease;
}
.confirm-box {
    background: #fff; border-radius: 16px; width: 100%; max-width: 380px;
    box-shadow: 0 24px 64px rgba(0,0,0,.2); overflow: hidden;
    animation: confirmSlideUp .25s ease;
}
.confirm-icon {
    display: flex; align-items: center; justify-content: center;
    padding: 28px 24px 12px; font-size: 48px;
}
.confirm-body {
    text-align: center; padding: 0 28px 20px;
}
.confirm-body h3 {
    font-size: 18px; font-weight: 700; color: #1f2937; margin-bottom: 8px;
}
.confirm-body p {
    font-size: 14px; color: #6b7280; line-height: 1.6;
}
.confirm-actions {
    display: flex; gap: 0; border-top: 1px solid #f3f4f6;
}
.confirm-actions button {
    flex: 1; padding: 14px; font-size: 15px; font-weight: 600;
    border: none; cursor: pointer; transition: background .15s;
}
.confirm-actions .confirm-cancel {
    background: #f9fafb; color: #6b7280; border-right: 1px solid #f3f4f6;
    border-radius: 0 0 0 16px;
}
.confirm-actions .confirm-cancel:hover { background: #f3f4f6; color: #374151; }
.confirm-actions .confirm-ok {
    background: #f9fafb; color: #2563eb;
    border-radius: 0 0 16px 0;
}
.confirm-actions .confirm-ok:hover { background: #eff6ff; }
.confirm-actions .confirm-ok.danger { color: #dc2626; }
.confirm-actions .confirm-ok.danger:hover { background: #fef2f2; }

@keyframes confirmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes confirmSlideUp { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* === Page Header === */
.page-header { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.page-header h2 { font-size: 22px; font-weight: 700; }
.page-header p, .page-header .text-muted { font-size: 14px; color: #6b7280; margin-top: 4px; }
.header-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

/* === Responsive === */
@media (max-width: 768px) {
    .navbar { padding: 0 12px; }
    .nav-links { gap: 2px; }
    .nav-links a, .nav-links button { padding: 6px 8px; font-size: 13px; }
    .hero { padding: 40px 16px; }
    .hero h1 { font-size: 24px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .category-card { padding: 14px 8px; }
    .category-card .icon { font-size: 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .form-card { padding: 20px 16px; }
    .detail-row { flex-direction: column; }
    .detail-label { width: auto; margin-bottom: 2px; }
    .app-container { padding: 16px 12px; }
    .data-table th, .data-table td { padding: 8px 6px; font-size: 13px; }
}
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr !important; }
    .order-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-logo { font-size: 15px; }
}

/* === Detail Page === */
.detail-page { }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.detail-main { }
.detail-sidebar { }
.detail-section { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.detail-section h3 { font-size: 17px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #f3f4f6; }
.detail-desc { font-size: 14px; color: #4b5563; line-height: 1.7; white-space: pre-wrap; }
.info-row { display: flex; margin-bottom: 8px; font-size: 14px; }
.info-row span:first-child { color: #6b7280; min-width: 80px; }
.info-row span:last-child { color: #1f2937; }
.price { color: #ef4444; font-weight: 700; font-size: 16px; }
.detail-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* === Timeline (detail) === */
.timeline .tl-dot { display: none; }
.timeline-item .tl-label { font-size: 14px; color: #1f2937; }

/* === Messages (detail) === */
.msg-item.msg-mine { background: #eff6ff; }
.msg-input { display: flex; gap: 8px; margin-top: 8px; }
.msg-input .form-input { flex: 1; }

/* === Text Utilities === */
.text-muted { color: #6b7280; font-size: 13px; }
.text-success { color: #10b981; }
.text-danger { color: #ef4444; }

/* === Admin === */
.admin-toolbar { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; }
.admin-toolbar .form-input { max-width: 320px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.admin-table th { background: #f9fafb; padding: 12px; font-size: 13px; font-weight: 600; text-align: left; color: #6b7280; white-space: nowrap; }
.admin-table td { padding: 12px; font-size: 14px; border-top: 1px solid #f3f4f6; }
.admin-table tr:hover td { background: #f9fafb; }

/* === Tech Card === */
.tech-card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.tech-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tech-header .avatar { width: 48px; height: 48px; font-size: 20px; flex-shrink: 0; }
.tech-info { flex: 1; }
.tech-info h3 { font-size: 16px; }
.tech-body { font-size: 14px; color: #4b5563; margin-bottom: 12px; }
.tech-body p { margin-bottom: 6px; }
.tech-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.skill-tag { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #eff6ff; color: #2563eb; font-size: 12px; }
.tech-footer { display: flex; gap: 16px; font-size: 13px; color: #6b7280; padding-top: 12px; border-top: 1px solid #f3f4f6; }

/* === Stat Card Colors === */
.stat-blue .stat-num { color: #2563eb; }
.stat-green .stat-num { color: #10b981; }
.stat-orange .stat-num { color: #f59e0b; }
.stat-purple .stat-num { color: #7c3aed; }
.stat-yellow .stat-num { color: #eab308; }
.stat-cyan .stat-num { color: #06b6d4; }
.stat-red .stat-num { color: #ef4444; }
.stat-teal .stat-num { color: #14b8a6; }

/* === Review / Complete Forms === */
.review-form, .complete-form { border: 2px solid #2563eb; }
.review-stars { font-size: 20px; color: #f59e0b; }

/* === Scrollable Tabs === */
.tab-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab-scroll::-webkit-scrollbar { height: 0; }

/* === Advantage Grid === */
.advantage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 40px; }
.advantage-card { background: #fff; border-radius: 12px; padding: 28px 20px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: transform .2s; }
.advantage-card:hover { transform: translateY(-4px); }
.advantage-card .adv-icon { font-size: 40px; margin-bottom: 12px; }
.advantage-card h3 { font-size: 16px; margin-bottom: 6px; }
.advantage-card p { font-size: 13px; color: #6b7280; }

/* === Filter Bar (Area + Lock Indicator) === */
.filter-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 16px; background: #fff; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { font-size: 13px; color: #4b5563; white-space: nowrap; }
.form-select-sm { padding: 6px 10px; font-size: 13px; border-radius: 6px; border: 1px solid #d1d5db; background: #f9fafb; min-width: 120px; }

/* === Lock Status === */
.lock-status { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.lock-active { color: #dc2626; font-weight: 500; }
.lock-timer { color: #6b7280; font-size: 12px; }

/* === Lock Badges === */
.badge-locked { background: #fee2e2 !important; color: #991b1b !important; font-size: 11px; }
.badge-my-lock { background: #dbeafe !important; color: #1e40af !important; font-size: 11px; }

/* === Button Group === */
.btn-group { display: flex; gap: 8px; margin-top: 8px; }
.btn-group .btn { flex: 1; }
.btn-outline { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.btn-outline:hover { background: #f3f4f6; border-color: #9ca3af; }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-warning:hover { background: #d97706; }
.btn-disabled { background: #e5e7eb !important; color: #9ca3af !important; cursor: not-allowed; }

/* === Area Tag in Order Card === */
.order-card .order-meta-grid { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #6b7280; margin: 8px 0; }

/* === Nav Links === */
.nav-tech-link { font-size: 12px !important; color: #059669 !important; border: 1px solid #6ee7b7; border-radius: 4px; padding: 4px 8px !important; }
.nav-tech-link:hover { color: #047857 !important; border-color: #34d399; }
.nav-admin-link { font-size: 12px !important; color: #9ca3af !important; border: 1px solid #d1d5db; border-radius: 4px; padding: 4px 8px !important; }
.nav-admin-link:hover { color: #4b5563 !important; border-color: #9ca3af; }

/* === Admin Modal === */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: #fff; border-radius: 16px; width: 100%; max-width: 640px; max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid #e5e7eb; }
.modal-header h3 { font-size: 18px; margin: 0; }
.modal-close { font-size: 24px; background: none; border: none; cursor: pointer; color: #6b7280; padding: 4px 8px; }
.modal-close:hover { color: #1f2937; }
.modal-body { padding: 20px 24px; }
.modal-body .form-group { margin-bottom: 14px; }
.modal-body .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid #e5e7eb; }

/* === Admin Badges === */
.badge-admin { background: #fef3c7 !important; color: #92400e !important; }
.badge-tech { background: #d1fae5 !important; color: #065f46 !important; }

/* === Admin Toolbar === */
.admin-toolbar { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.admin-toolbar .form-input { max-width: 280px; }

/* === Admin Table Enhanced === */
.btn-xs { font-size: 11px; padding: 3px 8px; border-radius: 4px; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }

/* === Tech Card Enhanced === */
.tech-card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.tech-header { display: flex; align-items: center; gap: 12px; }
.tech-header .avatar { width: 44px; height: 44px; border-radius: 50%; background: #e0e7ff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; color: #4338ca; }
.tech-info { flex: 1; }
.tech-info h3 { font-size: 15px; margin: 0; }
.tech-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tech-body { margin: 12px 0; padding: 12px; background: #f9fafb; border-radius: 8px; font-size: 13px; }
.tech-body p { margin: 4px 0; }
.tech-footer { display: flex; gap: 16px; font-size: 12px; color: #6b7280; }
