/* technician.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8fafc;
    color: #111827;
    line-height: 1.5;
}

.technician-page {
    min-height: 100vh;
}

.technician-topbar {
    height: 64px;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

.back-link,
.brand-link {
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-link {
    background: #16a34a;
    padding: 8px 14px;
    border-radius: 999px;
}

.technician-shell {
    max-width: 1180px;
    margin: 24px auto;
    padding: 0 16px 40px;
}

.detail-loading,
.detail-error {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 42px 18px;
    text-align: center;
    font-weight: 800;
    color: #64748b;
}

.detail-loading i,
.detail-error i {
    font-size: 2rem;
    color: #16a34a;
    margin-bottom: 10px;
}

.tech-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.tech-hero,
.tech-side-card,
.tech-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.06);
}

.tech-hero {
    padding: 22px;
}

.tech-hero-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tech-avatar-large {
    width: 86px;
    height: 86px;
    border-radius: 24px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    display: grid;
    place-items: center;
    font-size: 2rem;
    border: 1px solid #bbf7d0;
    flex: 0 0 auto;
}

.tech-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.tech-title-wrap {
    flex: 1;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.badge {
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 0.72rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge.available {
    background: #dcfce7;
    color: #166534;
}

.badge.offline {
    background: #fff7ed;
    color: #9a3412;
}

.badge.verified {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.badge.new {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e5e7eb;
}

.tech-name {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.tech-service {
    color: #16a34a;
    font-weight: 900;
    margin-top: 2px;
}

.tech-location {
    margin-top: 6px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
}

.tech-description {
    margin-top: 18px;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 600;
}

.tech-stats-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.tech-stat-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px 8px;
    text-align: center;
}

.tech-stat-box span {
    display: block;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tech-stat-box strong {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 900;
}

.tech-actions-panel {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-btn {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    font-weight: 900;
    font-size: 0.86rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #111827;
    background: #fff;
}

.detail-btn.primary {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(22,163,74,0.24);
}

.detail-btn.warning {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.detail-btn.map {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.detail-btn.whatsapp {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}

.tech-side-card {
    padding: 20px;
}

.price-card {
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 18px;
}

.price-card span {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.price-card strong {
    display: block;
    margin-top: 4px;
    color: #16a34a;
    font-size: 1.8rem;
    font-weight: 900;
}

.side-list {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.side-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px;
}

.side-item i {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #dcfce7;
    color: #166534;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.side-item span {
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
}

.side-item strong {
    display: block;
    color: #111827;
    font-size: 0.86rem;
    font-weight: 900;
}

.tech-section {
    margin-top: 18px;
    padding: 20px;
}

.section-title {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #16a34a;
}

.review-list {
    display: grid;
    gap: 10px;
}

.review-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
}

.review-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.review-client {
    font-weight: 900;
}

.review-rating {
    color: #f59e0b;
    font-weight: 900;
}

.review-comment {
    margin-top: 8px;
    color: #374151;
    font-size: 0.88rem;
}

.empty-reviews {
    color: #64748b;
    font-weight: 700;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 16px;
}

@media (max-width: 820px) {
    .technician-topbar {
        padding: 0 12px;
    }

    .back-link span {
        display: none;
    }

    .technician-shell {
        margin: 14px auto;
        padding: 0 10px 28px;
    }

    .tech-detail-grid {
        grid-template-columns: 1fr;
    }

    .tech-hero-top {
        flex-direction: column;
    }

    .tech-name {
        font-size: 1.35rem;
    }

    .tech-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tech-actions-panel {
        grid-template-columns: 1fr;
    }
}
.technician-topbar {
    position: sticky;
    top: 0;
    z-index: 1200;

    min-height: 64px;

    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(226,232,240,0.9);

    padding: 10px 14px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #0f172a;
    text-decoration: none;

    background: transparent;
    border: none;
    border-radius: 0;

    margin-right: 10px;
}

.back-link i {
    font-size: 1.15rem;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    color: #0f172a;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;

    background: linear-gradient(135deg, #16a34a, #f97316);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-page {
    font-size: 0.95rem;
    font-weight: 900;
    color: #64748b;
    margin-right: 8px;
}
@media (max-width: 820px) {
    .technician-topbar {
        top: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding-left: 14px;
        padding-right: 14px;
    }

    .topbar-brand span:last-child {
        display: none;
    }
}
.detail-btn.chat {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}