/* =====================================================================
   LISTING PAGE
   ===================================================================== */

.im-shared-detail {
    background: #f4f6f8;
    min-height: 100vh;
    overflow-x: hidden;
}



.im-detail-wrapper *,
.im-detail-wrapper *::before,
.im-detail-wrapper *::after,
.im-shared-detail *,
.im-shared-detail *::before,
.im-shared-detail *::after {
    box-sizing: border-box !important;
}

.im-listing-wrapper {
    background: var(--im-gray-50);
    padding-bottom: 60px;
}

/* ---------- Search Bar ---------- */
.im-search-bar {
    display: flex;
    gap: 12px;
    padding: 0 0 24px 0;
    max-width: 100%;
    margin: 0;
}

.im-search-input-wrap {
    flex: 1;
    position: relative;
}

.im-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--im-gray-400);
}

.im-search-input {
    width: 100%;
    padding: 10px 16px 10px 48px !important;
    border: 2px solid var(--im-gray-200) !important;
    border-radius: 50px !important;
    font-size: 15px;
    font-family: var(--im-font-primary);
    background: var(--im-white) !important;
    transition: var(--im-transition);
    outline: none;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.im-search-input:focus {
    border-color: var(--im-teal);
    box-shadow: 0 0 0 3px rgba(43, 188, 179, 0.15);
}

.im-search-input::placeholder {
    color: var(--im-gray-400);
}

.im-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: #0D1B2A !important;
    color: var(--im-white) !important;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--im-font-primary);
    cursor: pointer;
    transition: var(--im-transition);
    white-space: nowrap;
}

.im-search-btn:hover {
    background: #1a2c42 !important;
    transform: translateY(-1px);
    box-shadow: var(--im-shadow-md);
}

/* ---------- Listing Layout ---------- */
.im-listing-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Filter Sidebar ---------- */
.im-filter-sidebar {
    background: var(--im-white);
    border-radius: var(--im-radius-lg);
    padding: 0;
    box-shadow: var(--im-shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
    overflow: hidden;
}

.im-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--im-gray-100);
}

.im-filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--im-navy);
}

.im-filter-reset {
    background: none;
    border: none;
    color: var(--im-teal);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--im-font-primary);
    transition: var(--im-transition);
}

.im-filter-reset:hover {
    color: var(--im-teal-dark);
}

.im-filter-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.im-filter-close {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--im-gray-500);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: var(--im-transition);
}

.im-filter-close:hover {
    color: var(--im-navy);
}

.im-filter-groups {
    padding: 0;
}

.im-filter-group {
    border-bottom: 1px solid var(--im-gray-100);
}

.im-filter-group:last-child {
    border-bottom: none;
}

.im-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--im-navy);
    cursor: pointer;
    font-family: var(--im-font-primary);
    transition: var(--im-transition);
}

.im-filter-toggle:hover {
    background: #00F5D4;
    color: var(--im-navy);
}

.im-filter-toggle .im-chevron {
    transition: transform 0.3s ease;
}

.im-filter-toggle.active .im-chevron {
    transform: rotate(180deg);
}

.im-filter-dropdown {
    display: none;
    padding: 0 20px 14px;
}

.im-filter-dropdown.show {
    display: block;
    animation: imSlideDown 0.3s ease;
}

@keyframes imSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.im-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--im-gray-600);
    cursor: pointer;
    transition: var(--im-transition);
}

.im-filter-option:hover {
    color: #00C4A9;
}

.im-filter-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--im-teal);
    cursor: pointer;
}

.im-range-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 10px;
    padding: 6px 0 2px;
}

.im-range-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.im-range-field span {
    font-size: 12px;
    font-weight: 600;
    color: var(--im-gray-500);
}

.im-range-field input {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px !important;
    border: 1px solid var(--im-gray-200) !important;
    border-radius: var(--im-radius-sm) !important;
    background: var(--im-white) !important;
    color: var(--im-gray-700);
    font-family: var(--im-font-primary);
    font-size: 14px;
    line-height: 1.2;
    outline: none;
    box-shadow: none !important;
    transition: var(--im-transition);
}

.im-range-field input:focus {
    border-color: var(--im-teal) !important;
    box-shadow: 0 0 0 3px rgba(43, 188, 179, 0.15) !important;
}

.im-range-field input::placeholder {
    color: var(--im-gray-400);
}

.im-range-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    color: var(--im-gray-400);
    font-weight: 600;
}

.im-filter-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    padding: 14px 24px;
    background: var(--im-navy);
    color: var(--im-white);
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--im-shadow-xl);
    gap: 8px;
    align-items: center;
    font-family: var(--im-font-primary);
    transition: var(--im-transition);
}

.im-filter-mobile-toggle:hover {
    background: var(--im-navy-light);
}

/* ---------- Results Info ---------- */
.im-results-info {
    font-size: 14px;
    color: var(--im-gray-500);
    margin-bottom: 20px;
    font-weight: 500;
}

.im-results-info span {
    font-weight: 700;
    color: var(--im-navy);
}

/* ---------- Maid Grid ---------- */
.im-maid-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    min-height: 300px;
}

/* ---------- Maid Card ---------- */
.im-maid-card {
    background: var(--im-white);
    border-radius: var(--im-radius-lg);
    overflow: hidden;
    box-shadow: var(--im-shadow);
    transition: var(--im-transition);
}

.im-maid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--im-shadow-xl);
}

.im-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.im-card-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: var(--im-gray-100);
}

.im-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.im-maid-card:hover .im-card-image img {
    transform: scale(1.05);
}

.im-card-body {
    padding: 16px;
}

.im-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--im-navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

.im-card-age {
    font-weight: 500;
    color: var(--im-gray-500);
}

.im-card-desc {
    font-size: 13px;
    color: var(--im-gray-500);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.im-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--im-gray-100);
}

.im-card-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--im-teal);
    font-weight: 500;
}

.im-card-meta-item svg {
    color: var(--im-teal);
    flex-shrink: 0;
}

/* ---------- Pagination ---------- */
.im-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
}

.im-page-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--im-gray-200);
    border-radius: var(--im-radius-sm);
    background: var(--im-white);
    font-size: 14px;
    font-weight: 600;
    color: var(--im-gray-600);
    cursor: pointer;
    transition: var(--im-transition);
    font-family: var(--im-font-primary);
    line-height: 1;
    padding: 0;
    box-shadow: none;
}

.im-page-btn svg {
    width: 18px;
    height: 18px;
}

.im-page-btn:hover:not(:disabled) {
    border-color: var(--im-teal);
    color: var(--im-teal);
}

.im-page-btn.im-active {
    background: var(--im-teal);
    border-color: var(--im-teal);
    color: var(--im-white);
}

.im-page-total-btn {
    border-color: var(--im-teal);
    color: var(--im-teal);
}

.im-page-nav:disabled {
    background: var(--im-white);
    border-color: var(--im-gray-200);
    color: var(--im-gray-300);
    cursor: not-allowed;
}

.im-page-separator {
    color: var(--im-gray-400);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--im-font-primary);
}

/* ---------- No Results ---------- */
.im-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.im-no-results svg {
    margin-bottom: 16px;
}

.im-no-results h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--im-navy);
    margin-bottom: 8px;
}

.im-no-results p {
    font-size: 14px;
    color: var(--im-gray-500);
}

/* ---------- Loading Spinner ---------- */
.im-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    grid-column: 1 / -1;
}

.im-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--im-gray-200);
    border-top-color: var(--im-teal);
    border-radius: 50%;
    animation: imSpin 0.8s linear infinite;
}

@keyframes imSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================================
   DETAIL PAGE
   ===================================================================== */

.im-detail-wrapper {
    background: var(--im-white);
    padding-bottom: 60px;
    max-width: 1440px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* ---------- Breadcrumb ---------- */
.im-breadcrumb {
    background: transparent;
    padding: 16px 0;
}

.im-top-notification {
    background: #00C4A9;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 196, 169, 0.2);
}

.im-top-notification-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.im-top-notification-close:hover {
    opacity: 1;
}

.im-breadcrumb a {
    color: var(--im-gray-500);
    text-decoration: none;
    font-size: 14px;
    transition: var(--im-transition);
}

.im-breadcrumb a:hover {
    color: var(--im-teal);
}

.im-breadcrumb-sep {
    color: var(--im-gray-400);
    margin: 0 8px;
}

.im-breadcrumb span:last-child {
    color: var(--im-navy);
    font-weight: 600;
    font-size: 14px;
}

/* ---------- Profile Hero Banner ---------- */
.im-detail-hero {
    background-image: url('../images/bg-maid-detail.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 160px;
    border-radius: var(--im-radius) var(--im-radius) 0 0;
    position: relative;
}

.im-detail-hero::before,
.im-detail-hero::after {
    display: none;
}

/* ---------- Profile Section ---------- */
.im-profile-section {
    background: var(--im-white);
    padding: 0 0 40px;
    margin-top: 30px;
}

.im-profile-card {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
}

.im-profile-photo {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--im-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: var(--im-white);
    margin-top: -75px;
    margin-left: 30px;
    position: relative;
    z-index: 10;
}

.im-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.im-profile-info {
    flex: 1;
    padding-top: 20px;
}

.im-profile-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--im-navy);
    margin-bottom: 12px;
    line-height: 1.3;
}

.im-profile-age {
    font-weight: 400;
    font-size: 18px;
    color: var(--im-gray-500);
}

.im-profile-desc {
    font-size: 14px;
    color: var(--im-gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
}

.im-btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--im-navy);
    color: var(--im-white);
    border: none;
    border-radius: var(--im-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--im-transition);
    font-family: var(--im-font-primary);
}

.im-btn-contact:hover {
    background: var(--im-navy-light);
    transform: translateY(-2px);
    box-shadow: var(--im-shadow-lg);
    color: var(--im-white);
}

/* ---------- Detail Sections ---------- */
.im-detail-section {
    padding: 0;
    margin-top: 0;
}

.im-section-header {
    background: #CFD1D4;
    padding: 20px 24px;
    border-radius: 0;
    border-left: none;
    margin-top: 0;
    border-bottom: 3px solid var(--im-navy);
}

.im-section-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--im-navy);
    margin: 0;
    letter-spacing: 0.3px;
}

/* Modifier classes kept for flexibility, but all use same style now */
.im-section-header--teal,
.im-section-header--navy {
    background: #CFD1D4;
}

/* ---------- Personal Info Grid ---------- */
.im-personal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: #F8F9FA;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    border: 1px solid var(--im-gray-200);
    border-top: none;
}

.im-personal-item {
    padding: 20px 24px;
    border-bottom: 1px solid var(--im-gray-100);
    border-right: 1px solid var(--im-gray-100);
}

.im-personal-item:nth-child(3n) {
    border-right: none;
}

.im-personal-item:nth-last-child(-n+3) {
    border-bottom: none;
}

.im-personal-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--im-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.im-personal-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--im-navy);
}

/* ---------- Skills ---------- */
.im-skills-list {
    background: #F8F9FA;
    border-radius: 0;
    box-shadow: none;
    padding: 20px 24px;
    border-left: 1px solid var(--im-gray-200);
    border-right: 1px solid var(--im-gray-200);
    border-bottom: 1px solid var(--im-gray-200);
}

.im-skill-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--im-gray-100);
}

.im-skill-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.im-skill-row:first-child {
    padding-top: 0;
}

.im-skill-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f7f5;
    border-radius: 50%;
}

.im-skill-icon svg {
    color: var(--im-teal);
    stroke: var(--im-teal);
}

.im-skill-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--im-navy);
    margin-bottom: 10px;
}

.im-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.im-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.im-tag--teal {
    background: #e0f7f5;
    color: var(--im-teal-dark);
}

.im-tag--navy {
    background: #e2e8f0;
    color: var(--im-navy);
}

.im-tag--orange {
    background: #fef3c7;
    color: #b45309;
}

/* ---------- Work Experience Timeline ---------- */
.im-timeline {
    background: #F8F9FA;
    border-radius: 0;
    box-shadow: none;
    padding: 20px 24px;
    border-left: 1px solid var(--im-gray-200);
    border-right: 1px solid var(--im-gray-200);
    border-bottom: 1px solid var(--im-gray-200);
}

.im-timeline-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--im-gray-100);
    position: relative;
}

.im-timeline-item:last-child {
    border-bottom: none;
}

/**
 * Registration Forms (Agency & Maid)
 */
/**
 * Registration Forms (Agency & Maid) - Hero Card Style
 */
#im-agency-reg-card.im-reg-form-card,
#im-maid-reg-card.im-reg-form-card {
    max-width: 800px !important;
    margin: 40px auto !important;
    background: #ffffff !important;
    padding: 50px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e2e8f0 !important;
    position: relative !important;
    z-index: 10 !important;
}

#im-agency-reg-card .im-reg-title,
#im-maid-reg-card .im-reg-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-align: center !important;
    margin-bottom: 8px !important;
    font-family: var(--im-font-primary), sans-serif !important;
}

#im-agency-reg-card .im-reg-subtitle,
#im-maid-reg-card .im-reg-subtitle {
    font-size: 18px !important;
    color: #64748b !important;
    text-align: center !important;
    margin-bottom: 40px !important;
    font-family: var(--im-font-primary), sans-serif !important;
}

#im-agency-reg-card .im-reg-console-login {
    margin: 8px 0 0 !important;
    color: #475569 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    font-family: var(--im-font-primary), sans-serif !important;
}

#im-agency-reg-card .im-reg-console-login a {
    color: #027e83 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

#im-agency-reg-card .im-reg-console-login a:hover {
    text-decoration: underline !important;
}

.im-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.im-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.im-form-group.im-full-width {
    grid-column: span 2;
}

.im-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.im-form-group input,
.im-form-group textarea {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #0f172a;
    background: #fcfdfe;
    transition: all 0.2s ease;
}

.im-form-group input:focus,
.im-form-group textarea:focus {
    outline: none;
    border-color: #0f172a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
}

.im-reg-submit-btn {
    width: 100% !important;
    margin-top: 32px !important;
    padding: 16px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: none !important;
    text-transform: none !important;
}

.im-reg-submit-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.im-reg-submit-btn:active {
    transform: translateY(0);
}

.im-reg-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.im-reg-footer {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.im-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #22c55e;
    color: #ffffff;
    border-radius: 50%;
}

.im-reg-footer p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
    .im-form-grid {
        grid-template-columns: 1fr;
    }

    .im-form-group.im-full-width {
        grid-column: span 1;
    }

    .im-reg-form-card {
        padding: 24px;
    }

    .im-reg-title {
        font-size: 24px;
    }
}


.im-timeline-item:first-child {
    padding-top: 0;
}

.im-timeline-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f7f5;
    border-radius: 50%;
}

.im-timeline-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--im-navy);
    margin-bottom: 6px;
}

.im-timeline-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.im-timeline-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--im-teal);
    background: #e0f7f5;
    padding: 3px 12px;
    border-radius: 20px;
}

.im-timeline-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--im-gray-500);
    font-weight: 500;
}

.im-timeline-content p {
    font-size: 14px;
    color: var(--im-gray-500);
    line-height: 1.6;
}

/* ---------- Education ---------- */
.im-education-list {
    background: #F8F9FA;
    border-radius: 0;
    box-shadow: none;
    padding: 20px 24px;
    border-left: 1px solid var(--im-gray-200);
    border-right: 1px solid var(--im-gray-200);
    border-bottom: 1px solid var(--im-gray-200);
}

.im-education-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--im-gray-100);
}

.im-education-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.im-education-item:first-child {
    padding-top: 0;
}

.im-education-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f7f5;
    border-radius: 50%;
}

.im-education-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--im-navy);
    margin-bottom: 2px;
}

.im-education-duration {
    font-size: 13px;
    color: var(--im-gray-500);
    font-weight: 500;
}

/* ---------- Expectations ---------- */
.im-expectation-list {
    background: #F8F9FA;
    border-radius: 0;
    box-shadow: none;
    padding: 20px 24px;
    border-left: 1px solid var(--im-gray-200);
    border-right: 1px solid var(--im-gray-200);
    border-bottom: 1px solid var(--im-gray-200);
}

.im-expectation-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--im-gray-100);
}

.im-expectation-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.im-expectation-item:first-child {
    padding-top: 0;
}

.im-expectation-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f7f5;
    border-radius: 50%;
}

.im-expectation-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--im-navy);
    margin-bottom: 2px;
}

.im-expectation-content span {
    font-size: 14px;
    color: var(--im-gray-600);
    font-weight: 500;
}

/* =====================================================================
   BROWSE BY NATIONALITY
   ===================================================================== */

.im-browse-nationality {
    padding: 60px 0;
}

.im-section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--im-navy);
    text-align: center;
    margin-bottom: 8px;
}

.im-section-subtitle {
    font-size: 15px;
    color: var(--im-gray-500);
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.im-nationality-group {
    margin-bottom: 32px;
}

.im-nationality-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--im-teal);
}

.im-nationality-flag {
    font-size: 24px;
}

.im-nationality-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--im-navy);
}

.im-nationality-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* =====================================================================
   REGULAR MAID DETAIL - NEW DESIGN
   ===================================================================== */
.im-maid-detail-page {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 0 64px;
    background: #ffffff;
    color: #0b1b2a;
    overflow-x: hidden;
}

.im-detail-shell {
    width: min(100% - 96px, 1440px);
    margin: 0 auto;
}

.im-detail-breadcrumb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 38px 0 34px;
}

.im-detail-breadcrumb-row .im-breadcrumb-links {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7b8490;
    font-size: 14px;
}

.im-detail-breadcrumb-row .im-breadcrumb-links a {
    color: #7b8490;
    text-decoration: none;
}

.im-detail-breadcrumb-row .im-breadcrumb-links span:last-child {
    color: #0b1b2a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.im-maid-profile-card {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #f4f5f7;
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.08);
}

.im-maid-detail-hero {
    height: 205px;
    background-image: url('../images/bg-maid-detail.png');
    background-size: cover;
    background-position: center;
}

.im-maid-profile-body {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 26px;
    min-height: 250px;
    padding: 0 70px 50px;
    background: #f5f6f8;
}

.im-maid-profile-photo {
    position: relative;
    width: 190px;
    height: 190px;
    margin: -48px 0 0 48px;
    overflow: hidden;
    border: 7px solid #f5f6f8;
    border-radius: 50%;
    background: #dde3ea;
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.14);
}

.im-maid-profile-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.im-maid-profile-copy {
    padding-top: 26px;
}

.im-maid-profile-copy h1 {
    margin: 0 0 12px;
    color: #000000;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
}

.im-maid-profile-copy h1 span {
    font-size: 16px;
    font-weight: 700;
}

.im-maid-profile-desc {
    max-width: 930px;
    color: #4f5661;
    font-size: 16px;
    line-height: 1.55;
}

.im-maid-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 22px;
}

.im-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 34px;
    padding: 8px 20px;
    border: 1px solid #0b1b2a;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.im-detail-btn:hover {
    transform: translateY(-1px);
}

.im-detail-btn-primary {
    background: #0b1b2a;
    color: #ffffff !important;
}

.im-detail-btn-secondary {
    background: #ffffff;
    color: #0b1b2a !important;
}

.im-detail-panel {
    background: #f7f8fa;
}

.im-detail-panel-header {
    padding: 22px 24px;
    border-bottom: 4px solid #0b1b2a;
    background: #cfd2d5;
}

.im-detail-panel-header h2 {
    margin: 0;
    color: #0b1b2a;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
}

.im-video-intro-panel {
    background: #ffffff;
}

.im-video-stage {
    position: relative;
    min-height: 530px;
    margin: 42px 42px 40px;
    overflow: hidden;
    border-radius: 8px;
    background: #8d979f;
}

.im-video-stage > img,
.im-video-stage > video {
    display: block;
    width: 100%;
    height: 530px;
    object-fit: cover;
}

.im-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 110px;
    padding: 24px;
    background: #f7f8fa;
}

.im-detail-info-grid div {
    display: grid;
    gap: 8px;
}

.im-detail-info-grid span {
    color: #6c737c;
    font-size: 16px;
    font-weight: 500;
}

.im-detail-info-grid strong {
    color: #20252c;
    font-size: 16px;
    font-weight: 800;
}

.im-detail-skill-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 24px;
    background: #f7f8fa;
}

.im-detail-skill-card {
    padding: 18px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.05);
}

.im-detail-skill-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid #d5d9de;
}

.im-detail-skill-icon {
    width: 34px;
    height: 34px;
    border-radius: 3px;
    background: #dfe5ec;
}

.im-detail-skill-child .im-detail-skill-icon {
    background:
        radial-gradient(circle at 50% 39%, #0b1b2a 0 3px, transparent 4px),
        linear-gradient(#dfe5ec, #dfe5ec);
}

.im-detail-skill-house .im-detail-skill-icon {
    background:
        linear-gradient(135deg, transparent 42%, #4f8cf7 43% 57%, transparent 58%),
        #dbe8ff;
}

.im-detail-skill-cook .im-detail-skill-icon {
    background:
        radial-gradient(circle at 50% 38%, #ff9b32 0 4px, transparent 5px),
        #ffe7c5;
}

.im-detail-skill-head strong {
    color: #192230;
    font-size: 16px;
    font-weight: 800;
}

.im-detail-skill-head em {
    padding: 5px 9px;
    border-radius: 999px;
    background: #d9fbf6;
    color: #13b8a6;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.im-detail-meter {
    display: grid;
    gap: 5px;
    margin-top: 14px;
}

.im-detail-meter div,
.im-language-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.im-detail-meter div {
    color: #102033;
    font-size: 12px;
    font-weight: 800;
}

.im-detail-meter div small,
.im-language-line span {
    color: #10bfae;
    font-size: 9px;
    font-weight: 800;
}

.im-detail-meter b,
.im-language-card b {
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfeafb;
}

.im-detail-meter i,
.im-language-card i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #10bfae;
}

.im-detail-meter > small {
    justify-self: end;
    color: #6f7a86;
    font-size: 9px;
}

.im-language-panel {
    /* Removed box-shadow and border-radius to match flat design */
}

.im-language-list {
    display: grid;
    gap: 20px;
    padding: 26px 32px 0;
    background: #f7f8fa;
}

.im-language-card {
    padding: 18px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(16, 24, 40, 0.04);
}

.im-language-line {
    margin-bottom: 9px;
}

.im-language-line strong {
    color: #102033;
    font-size: 12px;
    font-weight: 800;
}

.im-language-card p,
.im-detail-empty {
    margin: 10px 0 0;
    color: #748094;
    font-size: 10px;
    line-height: 1.6;
}

@media (max-width: 1180px) {
    .im-detail-shell {
        width: min(100% - 40px, 1440px);
    }

    .im-maid-profile-body,
    .im-detail-info-grid,
    .im-detail-skill-grid {
        grid-template-columns: 1fr;
    }

    .im-maid-profile-body {
        padding: 0 34px 42px;
    }

}

@media (max-width: 700px) {
    .im-detail-shell {
        width: min(100% - 24px, 1440px);
    }

    .im-detail-breadcrumb-row {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 0;
    }

    .im-maid-detail-hero {
        height: 132px;
    }

    .im-maid-profile-body {
        display: grid;
        gap: 12px;
        padding: 0 22px 30px;
        text-align: center;
    }

    .im-maid-profile-photo {
        width: 136px;
        height: 136px;
        margin: -40px auto 0;
    }

    .im-maid-profile-copy h1 {
        font-size: 24px;
    }

    .im-maid-profile-desc {
        font-size: 14px;
    }

    .im-maid-profile-actions {
        justify-content: center;
    }

    .im-video-stage {
        min-height: 330px;
        margin: 22px 14px;
    }

    .im-video-stage > img,
    .im-video-stage > video {
        height: 330px;
    }

    .im-detail-panel-header {
        padding: 16px;
    }

    .im-detail-info-grid,
    .im-detail-skill-grid,
    .im-language-list {
        padding: 18px 14px;
    }

    .im-detail-skill-head {
        grid-template-columns: 38px 1fr;
    }

    .im-detail-skill-head em {
        grid-column: 2;
        justify-self: start;
    }
}

/* =====================================================================
   SHARED MAID DETAIL
   ===================================================================== */
.im-shared-detail {
    position: relative;
    left: 50%;
    width: 100%;
    max-width: 100%;
    margin-left: -50%;
    margin-right: -50%;
    background: #ffffff;
    color: #101828;
    padding: 44px 0 72px;
    overflow-x: hidden;
}

.im-shared-shell {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
}

.im-shared-detail .im-top-notification {
    margin: 0 0 18px;
}

.im-shared-hero {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #f5f7f9;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.im-shared-hero-art {
    height: 190px;
    background:
        linear-gradient(45deg, transparent 0 36%, #ff6a3d 36% 52%, transparent 52%),
        linear-gradient(45deg, #155c69 0 38%, #ff9b32 38% 76%, #ffd143 76% 100%);
}

.im-shared-profile {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 28px;
    align-items: start;
    padding: 0 48px 40px;
}

.im-shared-avatar {
    width: 176px;
    height: 176px;
    margin-top: -46px;
    border-radius: 50%;
    overflow: hidden;
    background: #e6eaee;
    border: 7px solid #f5f7f9;
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.12);
}

.im-shared-avatar img,
.im-shared-video-frame img,
.im-shared-video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.im-shared-intro {
    padding-top: 24px;
}

.im-shared-intro h1 {
    margin: 0 0 12px;
    color: #000000;
    font-size: 29px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: 0;
}

.im-shared-intro h1 span {
    font-size: 16px;
    font-weight: 600;
}

.im-shared-desc {
    max-width: 770px;
    color: #414651;
    font-size: 15px;
    line-height: 1.55;
}

.im-shared-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.im-shared-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 20px;
    border-radius: 4px;
    border: 1px solid #0b1b2a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
}

.im-shared-btn-primary {
    background: #0b1b2a;
    color: #ffffff !important;
}

.im-shared-btn-primary::before {
    content: "";
    width: 13px;
    height: 13px;
    margin-right: 7px;
    background: currentColor;
    clip-path: path("M6.5 11.6 5.6 10.8C2.4 7.9.3 6 .3 3.7.3 1.8 1.8.3 3.7.3c1.1 0 2.1.5 2.8 1.3C7.2.8 8.2.3 9.3.3c1.9 0 3.4 1.5 3.4 3.4 0 2.3-2.1 4.2-5.3 7.1l-.9.8Z");
}

.im-shared-btn-secondary {
    background: #ffffff;
    color: #0b1b2a !important;
}

.im-shared-btn-secondary::before {
    content: "";
    width: 12px;
    height: 12px;
    margin-right: 7px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) translateY(-2px);
}

.im-shared-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.im-shared-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
    margin: 34px 26px 0;
}

.im-shared-video-card,
.im-shared-agency-card,
.im-shared-mini-card,
.im-shared-skill-card {
    border: 1px solid #cfd6dd;
    border-radius: 8px;
    background: #ffffff;
}

.im-shared-video-card {
    padding: 14px 16px 16px;
}

.im-shared-video-card h2 {
    margin: 0 0 12px;
    color: #0b1b2a;
    font-size: 14px;
    font-weight: 700;
}

.im-shared-video-card h2::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 6px;
    vertical-align: -2px;
    border: 2px solid #0b1b2a;
    box-shadow: inset 0 0 0 2px #ffffff;
    background: #0b1b2a;
}

.im-shared-video-frame {
    position: relative;
    aspect-ratio: 16 / 8.15;
    overflow: hidden;
    border-radius: 6px;
    background: #d7dde3;
}

.im-shared-video-frame::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
    pointer-events: none;
}

.im-shared-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42px;
    height: 42px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.72);
}

.im-shared-play::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 12px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 13px solid #ffffff;
}

.im-shared-sidebar {
    display: grid;
    gap: 22px;
}

.im-shared-agency-card,
.im-shared-mini-card {
    padding: 18px;
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.06);
}

.im-shared-agency-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #c7ced6;
}

.im-shared-agency-logo {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #102033;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.im-shared-agency-head span {
    display: block;
    color: #344054;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.im-shared-agency-head strong {
    display: block;
    color: #0b1b2a;
    font-size: 13px;
    line-height: 1.3;
}

.im-shared-agency-lines {
    display: grid;
    gap: 11px;
    margin: 18px 0;
    color: #344054;
    font-size: 12px;
}

.im-shared-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 8px;
    background: #0b1b2a;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.im-shared-agency-card small {
    display: block;
    margin-top: 14px;
    text-align: center;
    color: #1f2937;
    font-size: 8px;
    text-transform: uppercase;
}

.im-shared-mini-card h3 {
    margin: 0 0 16px;
    color: #0b1b2a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.im-shared-mini-card dl,
.im-shared-mini-card div {
    margin: 0;
}

.im-shared-mini-card dl {
    display: grid;
    gap: 10px;
}

.im-shared-mini-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.im-shared-mini-card dt {
    color: #667085;
    font-size: 11px;
}

.im-shared-mini-card dd {
    color: #0b1b2a;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

.im-shared-tabs {
    display: flex;
    gap: 34px;
    margin: 24px 26px 0;
    border-bottom: 1px solid #d9dfe5;
    overflow-x: auto;
}

.im-shared-tabs a {
    position: relative;
    flex: 0 0 auto;
    padding: 12px 4px 14px;
    color: #8a929d;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.im-shared-tabs a.is-active {
    color: #0b1b2a;
}

.im-shared-tabs a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #1fc4b4;
}

.im-shared-section {
    margin: 24px 26px 0;
}

.im-shared-section > h2 {
    margin: 0;
    padding: 22px;
    border-bottom: 4px solid #0b1b2a;
    background: #d0d3d6;
    color: #0b1b2a;
    font-size: 17px;
    font-weight: 500;
}

.im-shared-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 84px;
    padding: 24px 18px 32px;
    background: #f7f8fa;
}

.im-shared-info-grid div {
    display: grid;
    gap: 6px;
}

.im-shared-info-grid span {
    color: #666f7a;
    font-size: 16px;
}

.im-shared-info-grid strong {
    color: #20252c;
    font-size: 16px;
    font-weight: 800;
}

.im-shared-skill-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    padding: 30px 18px;
    background: #f7f8fa;
}

.im-shared-skill-card {
    padding: 18px;
}

.im-shared-skill-head {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 12px;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid #adb5bd;
}

.im-shared-skill-icon {
    width: 34px;
    height: 34px;
    border-radius: 3px;
    background: #d9dee5;
}

.im-shared-skill-house .im-shared-skill-icon {
    background: #d9e6ff;
}

.im-shared-skill-cook .im-shared-skill-icon {
    background: #ffe8c9;
}

.im-shared-skill-head strong {
    color: #192230;
    font-size: 16px;
    font-weight: 800;
}

.im-shared-skill-head em {
    padding: 5px 9px;
    border-radius: 999px;
    background: #d9fbf6;
    color: #13b8a6;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.im-shared-meter {
    display: grid;
    gap: 5px;
    margin-top: 14px;
}

.im-shared-meter div {
    display: flex;
    justify-content: space-between;
    color: #102033;
    font-size: 12px;
    font-weight: 800;
}

.im-shared-meter div small {
    color: #10bfae;
    font-size: 9px;
}

.im-shared-meter b {
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5eefc;
}

.im-shared-meter i {
    display: block;
    width: 80%;
    height: 100%;
    border-radius: inherit;
    background: #1fb7aa;
}

.im-shared-meter > small {
    justify-self: end;
    color: #6f7a86;
    font-size: 9px;
}

.im-shared-work-list,
.im-shared-expectation-list {
    padding: 20px 18px 28px;
    background: #f7f8fa;
}

.im-shared-work-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #cfd6dd;
}

.im-shared-work-item:last-child {
    border-bottom: 0;
}

.im-shared-work-icon {
    width: 18px;
    height: 24px;
    margin-top: 4px;
    background: #16d9c5;
}

.im-shared-work-item h3 {
    margin: 0 0 4px;
    color: #1d2733;
    font-size: 18px;
    font-weight: 500;
}

.im-shared-work-meta {
    margin: 0 0 12px;
    color: #0b1b2a;
    font-size: 11px;
    font-weight: 700;
}

.im-shared-work-item p:not(.im-shared-work-meta),
.im-shared-empty {
    margin: 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.6;
}

.im-shared-expectation-list {
    display: grid;
}

.im-shared-expectation-list div {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 4px 14px;
    padding: 18px 0;
    border-bottom: 1px solid #cfd6dd;
}

.im-shared-expectation-list div:last-child {
    border-bottom: 0;
}

.im-shared-expectation-list span {
    grid-row: span 2;
    color: #04cbb8;
    font-size: 17px;
    font-weight: 800;
}

.im-shared-expectation-list strong {
    color: #1d2733;
    font-size: 17px;
    font-weight: 500;
}

.im-shared-expectation-list p {
    margin: 0;
    color: #0b1b2a;
    font-size: 12px;
    font-weight: 700;
}

.im-agency-detail-page .im-breadcrumb {
    padding: 12px 0 4px;
}

.im-agency-detail-page .im-agency-main-layout {
    padding-top: 8px;
}

@media (max-width: 1024px) {
    .im-shared-profile,
    .im-shared-main-grid,
    .im-shared-info-grid,
    .im-shared-skill-grid {
        grid-template-columns: 1fr;
    }

    .im-shared-main-grid,
    .im-shared-tabs,
    .im-shared-section {
        margin-left: 0;
        margin-right: 0;
    }

    .im-shared-profile {
        padding: 0 28px 34px;
    }
}

@media (max-width: 640px) {
    .im-shared-detail {
        padding-top: 24px;
    }

    .im-shared-shell {
        width: min(100% - 24px, 1440px);
    }

    .im-shared-hero-art {
        height: 132px;
    }

    .im-shared-avatar {
        width: 132px;
        height: 132px;
        margin-top: -38px;
    }

    .im-shared-intro h1 {
        font-size: 24px;
    }

    .im-shared-desc {
        font-size: 14px;
    }

    .im-shared-video-frame {
        aspect-ratio: 4 / 3;
    }

    .im-shared-tabs {
        gap: 18px;
    }

    .im-shared-section > h2 {
        padding: 16px;
        font-size: 15px;
    }

    .im-shared-info-grid,
    .im-shared-skill-grid {
        padding: 18px 12px;
    }
}

/* Preference onboarding modal */
body.im-pref-lock {
    overflow: hidden;
}

.im-pref-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 100002;
}

.im-pref-overlay.is-open {
    display: flex;
}

.im-pref-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 31, 0.68);
    backdrop-filter: blur(7px);
}

.im-pref-dialog {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 26px 80px rgba(2, 8, 23, 0.34);
}

.im-pref-panel {
    display: none;
}

.im-pref-panel.is-active {
    display: block;
}

.im-pref-body {
    padding: 44px 34px 32px;
}

.im-pref-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 28px;
    color: #122033;
    font-size: 25px;
    font-weight: 800;
}

.im-pref-logo span span {
    color: #15b8aa;
}

.im-pref-logo-mark {
    display: inline-flex;
    color: #15b8aa;
}

.im-pref-body h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.im-pref-step-describe .im-pref-body h2 {
    text-align: left;
}

.im-pref-body p {
    margin: 0 0 30px;
    color: #374151;
    font-size: 16px;
    line-height: 1.45;
    text-align: center;
}

.im-pref-step-describe .im-pref-body p {
    max-width: 490px;
    margin-bottom: 34px;
    text-align: left;
}

.im-pref-choice {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    width: 100%;
    min-height: 94px;
    margin-top: 16px;
    padding: 18px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f6f4f5;
    color: #111827;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.im-pref-choice:hover,
.im-pref-choice.is-selected {
    border-color: #15b8aa;
    background: #eafcf9;
    box-shadow: 0 0 0 1px rgba(21, 184, 170, 0.08);
    color: #111827;
}

.im-pref-choice-icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e9fbf8;
    color: #13b8aa;
}

.im-pref-choice strong,
.im-pref-choice small {
    display: block;
}

.im-pref-choice strong {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 800;
}

.im-pref-choice small {
    color: #555c68;
    font-size: 14px;
    line-height: 1.35;
}

.im-pref-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 90px;
    padding: 18px 34px;
    background: #eef5f2;
}


.im-pref-link,
.im-pref-dashboard {
    border: 0;
    background: transparent;
    color: #3f4b5c;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.im-pref-primary,
.im-pref-secondary,
.im-pref-recommend {
    display: inline-flex;
    min-width: 84px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.im-pref-primary,
.im-pref-recommend {
    border: 1px solid #081a2b;
    background: #081a2b;
    color: #ffffff;
}

.im-pref-secondary {
    border: 1px solid #0c1e31;
    background: #ffffff;
    color: #0c1e31;
}

#im-preference-onboarding .im-pref-label {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
}

.im-pref-textarea-wrap {
    position: relative;
}

#im-pref-transcript {
    display: block;
    width: 100%;
    min-height: 146px;
    padding: 14px 16px 32px;
    resize: none;
    border: 1px solid #c8cfd8;
    border-radius: 8px;
    color: #111827;
    font-size: 14px;
    line-height: 1.5;
}

#im-pref-transcript:focus {
    outline: none;
    border-color: #15b8aa;
    box-shadow: 0 0 0 3px rgba(21, 184, 170, 0.14);
}

#im-pref-transcript::placeholder {
    color: #b6bcc5;
}

.im-pref-counter {
    position: absolute;
    right: 12px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8a93a2;
    font-size: 12px;
}

.im-pref-ai-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 9px 18px;
    border: 1px solid #b9f2ec;
    border-radius: 999px;
    background: #dffdfa;
    color: #14a99c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.im-pref-step-success {
    text-align: center;
}

.im-pref-success-art {
    position: relative;
    height: 192px;
    background: #e8faf7;
}

.im-pref-check {
    position: absolute;
    top: 44px;
    left: 50%;
    display: flex;
    width: 108px;
    height: 108px;
    align-items: center;
    justify-content: center;
    margin-left: -54px;
    border: 6px solid #ffffff;
    border-radius: 50%;
    background: #2eb7ad;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 52, 67, 0.22);
}

.im-pref-success-dot {
    position: absolute;
    border-radius: 50%;
}

.im-pref-dot-one {
    top: 42px;
    left: 42px;
    width: 16px;
    height: 16px;
    background: #efcc7b;
}

.im-pref-dot-two {
    top: 34px;
    right: 96px;
    width: 12px;
    height: 12px;
    background: #d9e2ff;
}

.im-pref-dot-three {
    right: 64px;
    bottom: 48px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #9ee3dc;
    transform: rotate(10deg);
}

.im-pref-success-body {
    padding-top: 34px;
    text-align: center;
}

.im-pref-success-body h2 {
    font-size: 34px;
}

.im-pref-success-body p {
    max-width: 420px;
    margin: 0 auto 34px;
    line-height: 1.45;
}

.im-pref-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.im-pref-stats div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 74px;
    padding: 14px 18px;
    border: 1px solid #d8e3df;
    border-radius: 8px;
    background: #eef7f4;
    text-align: left;
}

.im-pref-stats span {
    grid-row: span 2;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #d7f1ed;
    color: #0e998e;
}

.im-pref-stats div:nth-child(2) span {
    background: #efead8;
    color: #a97511;
}

.im-pref-stats small {
    color: #5b6470;
    font-size: 13px;
}

.im-pref-stats strong {
    color: #111827;
    font-size: 15px;
}

.im-pref-recommend {
    width: 100%;
    height: 56px;
    gap: 8px;
    margin-bottom: 24px;
    box-shadow: 0 7px 14px rgba(8, 26, 43, 0.18);
    font-size: 20px;
}

@media (max-width: 640px) {
    .im-pref-overlay {
        padding: 14px;
    }

    .im-pref-body,
    .im-pref-actions {
        padding-left: 22px;
        padding-right: 22px;
    }

    .im-pref-body h2 {
        font-size: 23px;
    }

    .im-pref-choice {
        grid-template-columns: 42px 1fr;
        padding: 14px;
    }

    .im-pref-choice-icon {
        width: 42px;
        height: 42px;
    }

    .im-pref-actions {
        min-height: 78px;
    }

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

    .im-pref-success-body h2 {
        font-size: 28px;
    }
}

/* ---------- Agency Panel ---------- */
.im-agency-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--im-white);
    border: 1px solid var(--im-gray-200);
    border-top: none;
}

.im-agency-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.im-agency-details {
    flex: 1;
}

.im-agency-details h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--im-navy);
    margin: 0 0 4px 0;
}

.im-agency-license {
    font-size: 13px;
    color: var(--im-gray-500);
    margin: 0;
}

.im-agency-contact p {
    font-size: 13px;
    color: var(--im-gray-600);
    margin: 0 0 4px 0;
}

.im-agency-contact p span {
    font-weight: 600;
    color: var(--im-gray-500);
}

/* ---------- Video Popup ---------- */
.im-video-wrapper {
    position: relative;
    width: 100%;
}

.im-video-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--im-white);
    padding: 30px;
    border-radius: var(--im-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 100;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.im-video-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--im-gray-400);
    cursor: pointer;
}

.im-video-popup-icon {
    margin-bottom: 16px;
}

.im-video-popup h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--im-navy);
    margin: 0 0 12px 0;
}

.im-video-popup p {
    font-size: 14px;
    color: var(--im-gray-500);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.im-btn-contact-popup {
    width: 100%;
    padding: 12px;
    background: #0D1B2A;
    color: var(--im-white);
    border: none;
    border-radius: var(--im-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--im-transition);
}

.im-btn-contact-popup:hover {
    background: #1a2c42;
}

/* ---------- Skills Table ---------- */
.im-skills-tables, .im-language-list {
    background: var(--im-white);
    padding: 24px;
}

.im-table-responsive {
    overflow-x: auto;
}

.im-skill-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: var(--im-white);
    border: 1px solid var(--im-gray-200);
    table-layout: fixed;
}

.im-skill-table th,
.im-skill-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--im-gray-200);
}

.im-skill-table th:nth-child(1) { width: 35%; }
.im-skill-table th:nth-child(2) { width: 15%; }
.im-skill-table th:nth-child(3) { width: 30%; }
.im-skill-table th:nth-child(4) { width: 20%; }

.im-skill-table th {
    background: #F8F9FA;
    font-size: 13px;
    font-weight: 600;
    color: var(--im-gray-500);
}

.im-skill-table td {
    font-size: 14px;
    color: var(--im-navy);
    font-weight: 600;
}

.im-skill-group:last-child .im-skill-table {
    margin-bottom: 0;
}

.im-skill-group h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--im-navy);
    margin: 0 0 16px 0;
}

.im-star-rating {
    display: flex;
    gap: 2px;
}

.im-star {
    color: #e5e7eb;
    font-size: 16px;
}

.im-star.filled {
    color: #f59e0b;
}

/* ---------- Courses List ---------- */
.im-courses-list {
    padding: 20px 24px;
    background: #F8F9FA;
    border: 1px solid var(--im-gray-200);
    border-top: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.im-course-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--im-gray-200);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.im-course-item:last-child {
    margin-bottom: 0;
}

.im-course-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--im-white);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.im-course-info strong {
    display: block;
    font-size: 14px;
    color: var(--im-navy);
    font-weight: 600;
}

.im-course-info span {
    font-size: 12px;
    color: var(--im-gray-500);
}

/* ---------- Other Info Grid ---------- */
.im-others-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
    background: #F8F9FA;
    border: 1px solid var(--im-gray-200);
    border-top: none;
}

.im-other-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--im-navy);
    font-weight: 500;
}

@media (max-width: 768px) {
    .im-others-grid {
        grid-template-columns: 1fr;
    }
    .im-agency-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}


