/*
Theme Name: NIDFIL Connect
Theme URI: https://nidfil.com
Author: NIDFIL
Author URI: https://nidfil.com
Description: A modern WordPress theme for connecting users with construction and renovation specialists.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nidfil-connect
*/

/* Font Face Declarations */
@font-face {
    font-family: 'Aileron';
    src: url('assets/fonts/Aileron-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange-primary: #f97015;
    --orange-hover: #e05f0d;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;
    --border-color: #E5E5E5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* Headings - Use Poppins font */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Header Styles */
.site-header {
    background: var(--white);
    padding: 0.625rem 2rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    min-height: 58px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    height: 56px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.logo-image {
    height: 56px;
    width: auto;
    display: block;
}

.header-specialist-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: block;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.header-specialist-highlight {
    color: #ff8c42;
    display: inline-block;
    transition: all 0.3s ease;
}

.header-specialist-link:hover .header-specialist-highlight {
    color: #ff6b35;
    transform: translateY(-1px);
}

/* Header CTA - Professional Profile */
.header-cta-professional {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    white-space: nowrap;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.header-cta-text {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    background: #f97015;
    color: #fff;
    border: 1px solid #f97015;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 4px 10px rgba(249, 112, 21, 0.24);
    line-height: 1.05;
    min-height: 36px;
}

.header-cta-btn:hover {
    background: #e8650f;
    box-shadow: 0 6px 14px rgba(249, 112, 21, 0.28);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.header-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(249, 112, 21, 0.25);
}

.header-cta-btn svg {
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    margin-left: auto;
}

.header-notifications-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin-right: 0.5rem;
}

.header-notifications-button:hover {
    background: rgba(249, 112, 21, 0.1);
    color: var(--orange-primary);
}

.header-notifications-button svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.header-notifications-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-notifications-badge:empty {
    display: none;
}

.notifications-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(255, 248, 240, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    min-width: 380px;
    max-width: 420px;
    max-height: 600px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notifications-dropdown.active .notifications-dropdown-menu {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    z-index: 1000;
}

.notifications-dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    flex-shrink: 0;
}

.notifications-dropdown-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-mark-all-read {
    background: transparent;
    border: none;
    color: var(--orange-primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.btn-mark-all-read:hover {
    color: var(--orange-hover);
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    min-height: 200px;
    max-height: 500px;
}

.header-dropdown {
    position: relative;
}

.language-switcher-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.2s;
    width: 100%;
    font-family: inherit;
}

.language-switcher-button:hover {
    border-color: var(--orange-primary);
}

.language-switcher-button .dropdown-arrow {
    transition: transform 0.2s;
}

.language-switcher.active .language-switcher-button .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    overflow: hidden;
}

.language-switcher.active .language-dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    z-index: 1000;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: var(--bg-light);
    color: var(--orange-primary);
}

.language-option.active {
    background: rgba(249, 112, 21, 0.1);
    color: var(--orange-primary);
    font-weight: 600;
}

.language-name {
    font-size: 0.9rem;
}

.language-code {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.language-option:hover .language-code,
.language-option.active .language-code {
    color: var(--orange-primary);
}

.access-dropdown {
    position: relative;
}

.access-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    font-family: inherit;
}

.access-button:hover {
    border-color: var(--orange-primary);
}

.access-button .dropdown-arrow {
    transition: transform 0.2s;
}

.access-dropdown.active .access-button .dropdown-arrow {
    transform: rotate(180deg);
}

.access-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(255, 248, 240, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    min-width: 290px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    overflow: hidden;
}

.access-dropdown.active .access-dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    z-index: 1000;
}

.access-dropdown-header {
    padding: 0.75rem 1rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

.access-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
}

.access-option+.access-option {
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.access-option-inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.access-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(249, 112, 21, 0.08);
    flex-shrink: 0;
}

.access-option-icon i {
    font-size: 1rem;
    color: var(--orange-primary);
}

.access-option-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
}

.access-option-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.access-option:hover {
    background: transparent;
}

.access-option:hover .access-option-title {
    color: var(--orange-primary);
}

.access-option:hover .access-option-inner {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

/* Admin Profile Dropdown Styles */
.admin-profile-dropdown {
    position: relative;
}

.admin-profile-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.admin-profile-button:hover {
    border-color: var(--orange-primary);
}

.admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--orange-primary);
}

.admin-name {
    font-weight: 500;
    color: var(--text-dark);
}

.admin-profile-button .dropdown-arrow {
    transition: transform 0.2s;
}

.admin-profile-dropdown.active .admin-profile-button .dropdown-arrow {
    transform: rotate(180deg);
}

.admin-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(255, 248, 240, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    overflow: hidden;
}

.admin-profile-dropdown.active .admin-dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    z-index: 1000;
}

.admin-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

.admin-dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--orange-primary);
}

.admin-dropdown-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-dropdown-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.admin-dropdown-email {
    font-size: 0.8rem;
    color: var(--text-light);
}

.admin-dropdown-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.admin-dropdown-option:last-child {
    border-bottom: none;
}

.admin-dropdown-option:hover {
    background: rgba(249, 112, 21, 0.05);
    color: var(--orange-primary);
}

.admin-dropdown-option-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.admin-dropdown-option i {
    width: 20px;
    text-align: center;
    color: var(--orange-primary);
    font-size: 1rem;
}

.admin-dropdown-option span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Specialist Profile Dropdown Styles */
.specialist-profile-dropdown {
    position: relative;
}

.specialist-profile-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.specialist-profile-button:hover {
    border-color: var(--orange-primary);
}

.specialist-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--orange-primary);
}

.specialist-name {
    font-weight: 500;
    color: var(--text-dark);
}

.specialist-profile-button .dropdown-arrow {
    transition: transform 0.2s;
}

.specialist-profile-dropdown.active .specialist-profile-button .dropdown-arrow {
    transform: rotate(180deg);
}

.specialist-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(255, 248, 240, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    overflow: hidden;
}

.specialist-profile-dropdown.active .specialist-dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    z-index: 1000;
}

.specialist-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

.specialist-dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.specialist-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--orange-primary);
}

.specialist-dropdown-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.specialist-dropdown-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.specialist-dropdown-profession,
.specialist-dropdown-email {
    font-size: 0.8rem;
    color: var(--text-light);
}

.specialist-dropdown-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.specialist-dropdown-option:last-child {
    border-bottom: none;
}

.specialist-dropdown-option:hover {
    background: rgba(249, 112, 21, 0.05);
    color: var(--orange-primary);
}

.specialist-dropdown-option-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.specialist-dropdown-option i {
    width: 20px;
    text-align: center;
    color: var(--orange-primary);
    font-size: 1rem;
}

.specialist-dropdown-option span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Client Profile Dropdown Styles */
.client-profile-dropdown {
    position: relative;
}

.client-profile-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.client-profile-button:hover {
    border-color: var(--orange-primary);
}

.client-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--orange-primary);
}

.client-name {
    font-weight: 500;
    color: var(--text-dark);
}

.client-profile-button .dropdown-arrow {
    transition: transform 0.2s;
}

.client-profile-dropdown.active .client-profile-button .dropdown-arrow {
    transform: rotate(180deg);
}

.client-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(255, 248, 240, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    overflow: hidden;
}

.client-profile-dropdown.active .client-dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    z-index: 1000;
}

.client-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

.client-dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.client-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--orange-primary);
}

.client-dropdown-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.client-dropdown-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.client-dropdown-email {
    font-size: 0.8rem;
    color: var(--text-light);
}

.client-dropdown-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.client-dropdown-option:last-child {
    border-bottom: none;
}

.client-dropdown-option:hover {
    background: rgba(249, 112, 21, 0.05);
    color: var(--orange-primary);
}

.client-dropdown-option-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.client-dropdown-option i {
    width: 20px;
    text-align: center;
    color: var(--orange-primary);
    font-size: 1rem;
}

.client-dropdown-option span {
    font-size: 0.9rem;
    font-weight: 500;
    transform: translateY(-1px);
}

/* Verification Notice Styles */
.verification-notice {
    margin: 0.75rem;
    padding: 0.875rem;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ffb74d;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(255, 183, 77, 0.15);
    animation: verificationPulse 2s ease-in-out infinite;
}

@keyframes verificationPulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(255, 183, 77, 0.15);
    }

    50% {
        box-shadow: 0 2px 12px rgba(255, 183, 77, 0.25);
    }
}

.verification-notice-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
}

.verification-notice-content i {
    color: #f57c00;
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.verification-notice-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.verification-notice-text strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e65100;
    line-height: 1.3;
}

.verification-notice-text span {
    font-size: 0.75rem;
    color: #bf360c;
    line-height: 1.4;
}

.verification-notice-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f57c00;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.verification-notice-link:hover {
    background: #e65100;
    transform: translateX(2px);
}

.verification-notice-link i {
    font-size: 0.75rem;
}

/* Custom Dialog Modal Styles */
.custom-dialog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-dialog-modal.dialog-active {
    opacity: 1;
    visibility: visible;
}

.custom-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.custom-dialog-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.custom-dialog-modal.dialog-active .custom-dialog-content {
    transform: scale(1) translateY(0);
}

.custom-dialog-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.custom-dialog-icon svg {
    animation: pulse-icon 2s infinite;
}

.custom-dialog-icon.success-icon svg {
    animation: success-pulse 1.5s ease-out;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes success-pulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-dialog-content .custom-dialog-icon {
    margin-bottom: 1.25rem;
}

.success-dialog-content .custom-dialog-title {
    color: #10b981;
    margin-bottom: 0.5rem;
}

.custom-dialog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    margin: 0 0 0.75rem 0;
}

.custom-dialog-message {
    font-size: 1rem;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.custom-dialog-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.custom-dialog-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 120px;
}

.custom-dialog-btn-primary {
    background: var(--orange-primary);
    color: #ffffff;
}

.custom-dialog-btn-primary:hover {
    background: var(--orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 112, 21, 0.3);
}

.custom-dialog-btn-secondary {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.custom-dialog-btn-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #4a5568;
}

@media (max-width: 480px) {
    .custom-dialog-content {
        padding: 1.5rem;
        max-width: 95%;
    }

    .custom-dialog-title {
        font-size: 1.25rem;
    }

    .custom-dialog-message {
        font-size: 0.9rem;
    }

    .custom-dialog-actions {
        flex-direction: column;
    }

    .custom-dialog-btn {
        width: 100%;
    }
}

/* Verification Modal Styles */
.verification-step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.verification-message {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verification-message i {
    font-size: 1rem;
    flex-shrink: 0;
}

.verification-message.verification-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.verification-message.verification-success i {
    color: #10b981;
}

.verification-message.verification-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.verification-message.verification-error i {
    color: #ef4444;
}

#verificationCode {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 600;
    padding: 0.75rem;
}

#verificationCode:focus {
    letter-spacing: 0.5rem;
}

/* Legal page styles */
.legal-page {
    background: #f4f5fb;
}

.legal-hero {
    padding: 4.5rem 1.5rem 1.5rem;
    background: linear-gradient(135deg, #fff7f0 0%, #ffffff 55%, #f4f5fb 100%);
}

.legal-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.legal-intro {
    font-size: 1.02rem;
    color: var(--text-light);
    max-width: 640px;
}

.legal-content-section {
    padding: 2rem 1.5rem 4rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.25rem 2.2rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.legal-card h2 {
    font-size: 1.08rem;
    font-weight: 600;
    margin-top: 1.7rem;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    border-left: 3px solid var(--orange-primary);
    padding-left: 0.6rem;
}

.legal-card h2:first-of-type {
    margin-top: 0;
}

.legal-card p {
    font-size: 0.97rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 0.7rem;
}

.legal-card p.legal-section-first {
    border-left: 3px solid var(--orange-primary);
    padding-left: 0.6rem;
    margin-top: 0;
}

.legal-card ul {
    margin: 0.2rem 0 0.9rem 1.2rem;
    padding: 0;
    list-style: none;
}

.legal-card ul li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

.legal-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: var(--orange-primary);
    transform: translateY(-50%);
}

.legal-card a {
    color: var(--orange-primary);
    text-decoration: none;
}

.legal-card a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 3.25rem 1.1rem 0.9rem;
    }

    .legal-content-section {
        padding: 1.5rem 1.1rem 3rem;
    }

    .legal-content {
        max-width: 100%;
    }

    .legal-title {
        font-size: 1.85rem;
    }

    .legal-card {
        padding: 1.6rem 1.15rem;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    }
}

/* Cookie Consent Banner (Bottom) Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e5e9f2;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    opacity: 0;
    visibility: hidden;
}

.cookie-consent-banner.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.cookie-banner-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

.cookie-banner-link {
    color: #f97015;
    text-decoration: underline;
    font-weight: 500;
    margin-left: 4px;
}

.cookie-banner-link:hover {
    color: #ff8c42;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
    }

    .cookie-banner-text {
        width: 100%;
        min-width: auto;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .cookie-banner-actions .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--orange-primary);
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background: var(--orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 112, 21, 0.3);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.cookie-btn-reject:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--orange-primary);
    border: 1px solid var(--orange-primary);
}

.cookie-btn-settings:hover {
    background: rgba(249, 112, 21, 0.1);
    border-color: var(--orange-hover);
}

.cookie-settings-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-settings-link:hover {
    color: var(--orange-primary);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 10002;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cookie-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-modal-description {
    margin: 0 0 1.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-light);
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cookie-category-info p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-light);
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked+.cookie-toggle-slider {
    background-color: var(--orange-primary);
}

.cookie-toggle input:checked+.cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled+.cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.cookie-modal-actions .cookie-btn {
    flex: 1;
    min-width: 150px;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem 1rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-banner-text {
        min-width: 100%;
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-modal-header,
    .cookie-modal-body {
        padding: 1.25rem;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-modal-actions {
        flex-direction: column;
    }

    .cookie-modal-actions .cookie-btn {
        width: 100%;
    }
}

/* Access dropdown responsive */
@media (max-width: 768px) {
    .access-dropdown-menu {
        right: 0;
        left: auto;
        width: calc(100vw - 12px);
        max-width: 380px;
        transform: translateY(-10px);
    }

    .access-dropdown.active .access-dropdown-menu {
        transform: translateY(0) !important;
    }
}

/* Access Modal Styles */
.access-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.access-modal.modal-active {
    opacity: 1;
    visibility: visible;
}

.access-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.access-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s;
    z-index: 10000;
    /* Hide scrollbar but allow scrolling */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.access-modal-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

.access-modal.modal-active .access-modal-content {
    transform: scale(1);
}

.access-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.3s;
    z-index: 10001;
}

.access-modal .modal-close:hover {
    background: var(--border-color);
    transform: rotate(90deg);
}

.access-modal .modal-body {
    padding: 2rem;
}

.access-modal .modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.9375rem;
    color: var(--text-light);
}

.form-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.form-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-light);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.form-tab.active {
    color: var(--orange-primary);
    border-bottom-color: var(--orange-primary);
}

.form-tab:hover {
    color: var(--orange-primary);
}

.access-form {
    display: none !important;
}

.access-form.active-form {
    display: block !important;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.2s;
    font-family: inherit;
    -moz-appearance: textfield;
    appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group input:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(249, 112, 21, 0.1);
}

/* Inline form groups - for side-by-side fields */
.form-group-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-group-inline .form-group {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .form-group-inline {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group-inline .form-group {
        margin-bottom: 1.25rem;
    }
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.checkbox-label a {
    color: var(--orange-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.checkbox-label a:hover {
    color: var(--orange-hover);
    text-decoration: underline;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-top: 0.125rem;
    cursor: pointer;
    accent-color: var(--orange-primary);
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
    font-size: 0.875rem;
    word-break: break-word;
}

.terms-checkbox-label {
    padding-top: 10px;
}

.forgot-password,
.forgot-password-link {
    color: var(--orange-primary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.875rem;
}

.forgot-password:hover,
.forgot-password-link:hover {
    color: var(--orange-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .access-modal-content {
        width: calc(100% - 1rem);
        max-width: 100%;
        max-height: 92vh;
        border-radius: 14px;
    }

    .access-modal .modal-body {
        padding: 1.25rem 1rem;
    }

    .access-modal .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
    }

    .forgot-password-link {
        display: inline-block;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="password"],
    .form-group input[type="number"],
    .form-group textarea,
    .form-group select {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .access-modal .modal-header {
        margin-bottom: 1.25rem;
    }

    .form-tabs {
        margin-bottom: 1.25rem;
    }

    .form-tab {
        padding: 0.625rem 0.75rem;
    }
}

.form-submit {
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.form-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.form-divider span {
    position: relative;
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.social-login {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    width: auto;
    min-width: 200px;
    max-width: 100%;
    justify-content: center;
    margin: 0 auto;
}

.social-login svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 768px) {

    /* Header Mobile Styles */
    .site-header {
        padding: 0.625rem 1rem;
    }

    .header-container {
        flex-wrap: nowrap;
        gap: 0.75rem;
        padding: 0;
    }

    .site-logo {
        height: 45px;
        flex-shrink: 0;
    }

    .logo-image {
        height: 45px;
        max-width: 120px;
        object-fit: contain;
    }

    .header-specialist-link {
        font-size: 0.8125rem;
        flex-shrink: 1;
        min-width: 0;
        white-space: normal;
        line-height: 1.3;
    }

    .header-cta-professional {
        position: static;
        transform: none;
        flex: 1;
        justify-content: center;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .header-cta-text {
        display: none;
    }

    .header-cta-btn {
        font-size: 12px;
        font-weight: 700;
        padding: 8px 14px;
        min-height: 34px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(249, 112, 21, 0.26);
    }

    .header-right {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .header-dropdown {
        flex-shrink: 0;
    }

    .language-switcher-button,
    .access-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    .access-button span {
        display: none;
    }

    .access-button {
        padding: 0.5rem;
        min-width: 40px;
        justify-content: center;
    }

    .language-dropdown-menu,
    .access-dropdown-menu {
        right: 0;
        left: auto;
        min-width: 160px;
        max-width: calc(100vw - 2rem);
    }

    .access-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .access-modal .modal-body {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}

/* Hero Section */
.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-image-container {
        margin-bottom: 1.5rem;
        border-radius: 25px;
    }

    .hero-title {
        font-size: 1.875rem;
        letter-spacing: 0.01em;
        line-height: 1.25;
    }

    .hero-title-highlight {
        margin-top: 2.5rem;
    }

}

@media (max-width: 320px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.01em;
        line-height: 1.3;
    }

    .hero-title-highlight {
        margin-top: 2rem;
    }

}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.1;
    text-transform: none;
    font-style: normal;
    letter-spacing: -0.01em;
    text-align: center;
}

.hero-title-highlight {
    color: var(--text-dark);
    display: inline;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hero-title-rest {
    color: var(--orange-primary);
    display: inline;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Desktop: Ensure inline display on single line */
@media (min-width: 769px) {
    .hero-title {
        display: block;
        white-space: nowrap;
        text-align: center;
        width: auto;
        max-width: 100%;
    }

    .hero-title-highlight,
    .hero-title-rest {
        display: inline;
        vertical-align: baseline;
    }
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--orange-primary);
    margin-bottom: 2rem;
    text-transform: none;
    font-style: normal;
}

.hero-service-switch {
    display: inline-flex;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
    background: #f7f7fa;
    padding: 0.5rem 0.6rem;
    border-radius: 22px;
    margin-top: 35px;
}

.hero-service-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    min-width: 230px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-service-card--primary {
    background: #fff;
    border-color: #ff8c42;
    box-shadow: 0 8px 18px rgba(255, 140, 66, 0.25);
}

.hero-service-card--secondary {
    background: #3f3f46;
    color: #f9fafb;
}

.hero-service-card.is-active {
    background: #ffffff;
    border-color: #ff8c42;
    box-shadow: 0 10px 22px rgba(255, 140, 66, 0.3);
    color: var(--text-dark);
}

.hero-service-card.is-active .hero-service-icon {
    background: rgba(255, 140, 66, 0.14);
    color: #ff8c42;
}

.hero-service-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 140, 66, 0.12);
    color: #ff8c42;
    flex-shrink: 0;
}

.hero-service-icon i,
.hero-service-icon .fas {
    font-size: 16px;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-service-card--secondary .hero-service-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #f97316;
}

.hero-service-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
}

.hero-service-subtitle {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
}

.hero-service-card--secondary .hero-service-title,
.hero-service-card--secondary .hero-service-subtitle {
    color: #f9fafb;
}

/* Override secondary styles when active */
.hero-service-card--secondary.is-active {
    background: #ffffff;
    border-color: #ff8c42;
    box-shadow: 0 10px 22px rgba(255, 140, 66, 0.3);
    color: var(--text-dark);
}

.hero-service-card--secondary.is-active .hero-service-title,
.hero-service-card--secondary.is-active .hero-service-subtitle {
    color: var(--text-dark);
}

.hero-service-card--secondary.is-active .hero-service-icon {
    background: rgba(255, 140, 66, 0.14);
    color: #ff8c42;
}

.hero-service-card:hover {
    transform: translateY(-1px);
}

.hero-service-card--primary:hover {
    box-shadow: 0 10px 22px rgba(255, 140, 66, 0.3);
}

.hero-service-card--secondary:hover {
    background: #27272f;
}

.hero-service-card--secondary.is-active:hover {
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(255, 140, 66, 0.35);
}

.hero-service-details {
    max-width: 900px;
    margin: 0 auto 2.75rem;
    margin-top: 10px;
}

/* Hide hero-service-details container when no panels are active */
.hero-service-details:not(.has-active-panel) {
    display: none;
}

/* Hide mobile version on desktop */
.hero-service-details--mobile {
    display: none;
}

/* Hide desktop version on mobile */
@media (max-width: 768px) {
    .hero-service-details--desktop {
        display: none;
    }

    .hero-service-details--mobile {
        display: block;
    }

    .hero-service-details {
        margin-top: 20px;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-service-details {
        margin-top: 15px;
        margin-bottom: 1.5rem;
        padding: 0;
    }
}

.hero-service-panel {
    display: none;
    background: #ffffff;
    border-radius: 26px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
}

.hero-service-panel.is-active {
    display: block;
}

/* Both panels use block layout when active */
.hero-service-panel--reforma.is-active {
    display: block;
}

.hero-service-panel--nueva.is-active {
    display: block;
}

/* Ensure panels are hidden when not active */
.hero-service-panel--reforma:not(.is-active),
.hero-service-panel--nueva:not(.is-active) {
    display: none !important;
}

.hero-service-panel-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: rgba(255, 140, 66, 0.1);
    color: #ff8c42;
    font-size: 1.6rem;
}

.hero-service-panel-icon i,
.hero-service-panel-icon .fas {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-service-panel-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    text-transform: uppercase;
}

.hero-service-panel-text {
    max-width: 540px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* New Construction Flow Styles */
.hero-search-bar-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Inline Search Bar - Consistent sizing for both panels (reforma and nueva) */
.hero-search-bar-inline {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.hero-search-bar-inline .project-type-section {
    flex: 0 0 240px;
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    margin: 0;
}

.hero-search-bar-inline .project-type-dropdown-header {
    width: 100%;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
}

.hero-search-bar-inline .nueva-location-section {
    flex: 1 1 auto;
    min-width: 280px;
    margin: 0;
}

.hero-search-bar-inline .nueva-location-field {
    width: 100%;
    height: 56px;
    position: relative;
}

.hero-search-bar-inline .nueva-location-field input {
    width: 100%;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    box-sizing: border-box;
    padding: 0 3rem 0 1rem;
    line-height: 56px;
}

.hero-search-bar-inline .nueva-search-section {
    flex: 0 0 200px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    margin: 0;
}

.hero-search-bar-inline .nueva-search-btn {
    width: 100%;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    white-space: nowrap;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
}

.hero-service-panel--nueva {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Both panels use the same inline search bar styles - no need for separate rules */

.project-type-section {
    margin-bottom: 0;
    flex: 1;
}

.project-type-dropdown-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: left;
}

.project-type-dropdown-header:hover {
    border-color: #ff8c42;
}

.project-type-dropdown-header.active {
    border-color: #ff8c42;
    background: #fff7f0;
}

.project-type-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.project-type-arrow {
    font-size: 0.875rem;
    color: #666666;
    transition: transform 0.3s ease;
}

.project-type-dropdown-header.active .project-type-arrow {
    transform: rotate(180deg);
}

.project-type-dropdown {
    display: none;
    margin-top: 0.75rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    animation: fadeInDown 0.3s ease;
    position: relative;
    z-index: 10;
}

.project-type-dropdown.show {
    display: block !important;
}

.project-type-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
    position: relative;
}

.project-type-option:last-child {
    border-bottom: none;
}

.project-type-option:hover {
    background: #f9fafb;
}

.project-type-option.selected {
    background: #fff7f0;
}

.project-type-option.selected .project-type-check {
    display: block !important;
}

.project-type-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 140, 66, 0.1);
    color: #ff8c42;
    flex-shrink: 0;
}

.project-type-option-icon i,
.project-type-option-icon .fas {
    font-size: 18px;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.project-type-option-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    flex: 1;
}

.project-type-check {
    font-size: 0.875rem;
    color: #ff8c42;
    margin-left: auto;
}

/* Location Section */
.nueva-location-section {
    margin-bottom: 0;
    flex: 1;
}

.nueva-location-field {
    position: relative;
    width: 100%;
}

.nueva-location-field input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    color: var(--text-dark);
    transition: all 0.2s ease;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.nueva-location-field input:focus {
    outline: none;
    border-color: #ff8c42;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.nueva-location-field .location-icon-right {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}


/* Search Button */
.nueva-search-section {
    margin-top: 0;
    flex: 0 0 auto;
}

.nueva-search-btn {
    width: 100%;
    padding: 1.125rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: #3f3f46;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.nueva-search-btn:hover {
    background: #27272f;
    transform: translateY(-1px);
}

.nueva-search-btn:active {
    transform: translateY(0);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Responsive - Tablet and up */
@media (min-width: 481px) {
    .project-type-dropdown-header {
        padding: 1.125rem 1.5rem;
    }

    .project-type-title {
        font-size: 1.05rem;
    }

    .project-type-option {
        padding: 1.125rem 1.5rem;
    }

    .project-type-option-icon {
        width: 44px;
        height: 44px;
    }

    .project-type-option-label {
        font-size: 1rem;
    }
}

/* Responsive - Desktop */
@media (min-width: 768px) {
    .hero-service-panel--nueva.is-active {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .project-type-section {
        flex: 0 0 220px;
        min-width: 220px;
        position: relative;
    }

    .hero-search-bar-inline .project-type-section {
        flex: 0 0 240px;
        width: 240px;
        min-width: 240px;
        max-width: 240px;
    }

    .hero-search-bar-inline .nueva-location-section {
        min-width: 280px;
    }

    .hero-search-bar-inline .nueva-search-section {
        flex: 0 0 200px;
        width: 200px;
        min-width: 200px;
        max-width: 200px;
    }

    .hero-search-bar-inline .nueva-search-btn {
        width: 100%;
    }

    .hero-search-bar-inline .project-type-dropdown-header,
    .hero-search-bar-inline .nueva-location-field input,
    .hero-search-bar-inline .nueva-search-btn {
        height: 56px;
        min-height: 56px;
        max-height: 56px;
    }

    .project-type-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 0.5rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .project-type-dropdown-header {
        padding: 1.125rem 1.5rem;
    }

    .hero-search-bar-inline .project-type-dropdown-header {
        height: 56px;
        min-height: 56px;
        max-height: 56px;
        padding: 0 1.25rem;
    }

    .project-type-title {
        font-size: 1rem;
    }

    .nueva-location-section {
        flex: 1;
        min-width: 0;
    }

    .hero-search-bar-inline .nueva-location-field input {
        height: 56px;
        min-height: 56px;
        max-height: 56px;
    }

    .hero-search-bar-inline .nueva-search-btn {
        height: 56px;
        min-height: 56px;
        max-height: 56px;
    }

    .nueva-location-field input {
        padding: 1.125rem 3.25rem 1.125rem 1.125rem;
        font-size: 1rem;
    }

    .nueva-search-section {
        flex: 0 0 auto;
    }

    .nueva-search-btn {
        padding: 1.125rem 2rem;
        font-size: 1rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .hero-service-switch {
        display: inline-flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        width: 100%;
    }

    .hero-service-card {
        justify-content: flex-start;
        flex: 1 1 0;
        min-width: 0;
        padding: 0.7rem 0.8rem;
    }

    .hero-service-panel {
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
    }

    /* Mobile responsive styles for inline search bar */
    .hero-search-bar-inline {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-search-bar-inline .project-type-section {
        flex: 1 1 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .hero-search-bar-inline .nueva-location-section {
        flex: 1 1 100%;
        width: 100%;
        min-width: 100%;
    }

    .hero-search-bar-inline .nueva-search-section {
        flex: 1 1 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .hero-search-bar-inline .project-type-dropdown-header,
    .hero-search-bar-inline .nueva-location-field input,
    .hero-search-bar-inline .nueva-search-btn {
        width: 100%;
        height: 50px;
        min-height: 50px;
        max-height: 50px;
    }

    .hero-search-bar-inline .nueva-search-btn {
        width: 100%;
    }

    /* Mobile dropdown positioning */
    .hero-search-bar-inline .project-type-section {
        position: relative;
    }

    .hero-search-bar-inline .project-type-dropdown {
        position: relative;
        margin-top: 0.75rem;
        width: 100%;
        left: 0;
        right: 0;
    }
}

.hero-image-container {
    width: 100%;

    margin: 0 auto 2.5rem;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
    width: 100%;
    height: 450px;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .hero-image {
        height: 390px;
    }

    /* Tablet responsive styles for inline search bar */
    .hero-search-bar-inline {
        gap: 0.875rem;
    }

    .hero-search-bar-inline .project-type-section {
        flex: 0 0 auto;
        min-width: 200px;
        max-width: 100%;
    }

    .hero-search-bar-inline .nueva-location-section {
        flex: 1 1 auto;
        min-width: 200px;
    }

    .hero-search-bar-inline .nueva-search-section {
        flex: 0 0 auto;
        min-width: 160px;
        max-width: 100%;
    }

    /* If elements don't fit, allow wrapping */
    .hero-search-bar-inline {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 190px;
        border-radius: 10px;
    }
}

@media (max-width: 320px) {
    .hero-image {
        height: 390px;
        border-radius: 10px;
    }

    /* Very small screen adjustments for search bar */
    .hero-search-bar-inline {
        gap: 0.875rem;
    }

    .hero-service-panel {
        padding: 1.5rem 1rem;
    }

    .hero-search-bar-inline .project-type-dropdown-header,
    .hero-search-bar-inline .nueva-location-field input,
    .hero-search-bar-inline .nueva-search-btn {
        height: 48px;
        min-height: 48px;
        max-height: 48px;
        font-size: 0.9rem;
    }
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    text-decoration: none;
}

.btn-outline {
    background: var(--white);
    border: 2px solid var(--orange-primary);
    color: var(--orange-primary);
}

.btn-outline:hover {
    background: var(--orange-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--orange-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.btn-primary:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 112, 21, 0.3);
}

/* Search Section */
.search-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(249, 112, 21, 0.08);
}

.search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-field label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 1rem 1.125rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    appearance: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    cursor: pointer;
}

.search-field select:hover,
.search-field input:hover {
    border-color: rgba(249, 112, 21, 0.4);
    box-shadow: 0 2px 8px rgba(249, 112, 21, 0.08);
}

.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 4px rgba(249, 112, 21, 0.12), 0 4px 12px rgba(249, 112, 21, 0.15);
    background-color: #fffefb;
}

.search-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23666666' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.125rem center;
    padding-right: 3rem;
    background-size: 16px 16px;
}

.search-field select option {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--white);
    font-weight: 500;
}

.search-field select option:hover,
.search-field select option:focus,
.search-field select option:checked {
    background: rgba(249, 112, 21, 0.1);
    color: var(--orange-primary);
    font-weight: 600;
}

/* Custom select styling for better appearance */
.search-field select::-ms-expand {
    display: none;
}

/* Selected value styling */
.search-field select:not([value=""]) {
    border-color: rgba(249, 112, 21, 0.3);
    background-color: #fffefb;
    color: var(--text-dark);
    font-weight: 600;
}

.search-field select:not([value=""]):hover {
    border-color: rgba(249, 112, 21, 0.5);
}

/* Placeholder/empty state styling */
.search-field select[value=""] {
    color: var(--text-light);
    font-weight: 500;
}

/* Enhanced dropdown arrow animation */
.search-field select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23666666' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
}

.location-field {
    position: relative;
}

.distance-field {
    position: relative;
}

.distance-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\'http://www.w3.org/2000/svg\' width=\'12\' height=\'12\' viewBox=\'0 0 12 12\'><path fill=\'%23333\' d=\'M6 9L1 4h10z\'/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    font-family: inherit;
}

.distance-field select:hover {
    border-color: #d0d0d0;
}

.distance-field select:focus {
    outline: none;
    border-color: var(--orange-primary, #f97015);
    box-shadow: 0 0 0 3px rgba(249, 112, 21, 0.1);
}

.location-field input {
    padding-right: 2.5rem;
}

.location-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.search-button {
    padding: 1rem 2.5rem;
    background: var(--orange-primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: flex-end;
    box-shadow: 0 4px 12px rgba(249, 112, 21, 0.25);
    letter-spacing: 0.01em;
}

.search-button:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 112, 21, 0.35);
}

.search-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(249, 112, 21, 0.25);
}

/* Categories Section */
.categories-section {
    padding: 5rem 0;
    background: var(--white);
}

.section-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
    font-size: 3.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3.5rem;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid #E5E7EB;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 112, 21, 0.05) 0%, rgba(249, 112, 21, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--orange-primary);
    box-shadow: 0 8px 24px rgba(249, 112, 21, 0.15);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.category-card svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
}

.category-card:hover svg {
    transform: scale(1.1);
}

.category-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Responsive Categories Grid */
@media (max-width: 1400px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-card {
        padding: 1.5rem 1rem;
    }

    .category-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    .category-name {
        font-size: 0.875rem;
    }
}

/* Section Container */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .section-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 1rem;
    }
}

/* Subscription Plans Section */
.subscription-plans-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.subscription-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    justify-content: center;
    justify-items: center;
}

.subscription-plan-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 380px;
    min-width: 0;
}

.subscription-plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(249, 112, 21, 0.15);
    border-color: var(--orange-primary);
}

.subscription-plan-card.plan-pro {
    border-color: var(--orange-primary);
    background: linear-gradient(135deg, #ffffff 0%, #fff8f5 100%);
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.plan-card-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.01em;
}

.plan-pro-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, var(--orange-primary) 0%, #ff8c42 100%);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
}

.plan-card-price {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.plan-price-amount {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.plan-price-period {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 0.25rem;
}

.plan-card-features {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
    flex: 1;
}

.plan-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.plan-feature-item:last-child {
    margin-bottom: 0;
}

.plan-feature-check {
    color: #f97015;
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.plan-card-actions {
    margin-top: auto;
}

.plan-cta-button {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--orange-primary);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.plan-cta-button:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 112, 21, 0.3);
}

.subscription-plan-card.plan-pro .plan-cta-button {
    background: linear-gradient(135deg, var(--orange-primary) 0%, #ff8c42 100%);
}

.subscription-plan-card.plan-pro .plan-cta-button:hover {
    background: linear-gradient(135deg, var(--orange-hover) 0%, #e05f0d 100%);
}

@media (max-width: 768px) {
    .subscription-plans-section {
        padding: 3rem 0;
    }

    .subscription-plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .subscription-plan-card {
        padding: 2rem;
    }

    .plan-card-title {
        font-size: 1.5rem;
    }

    .plan-price-amount {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .subscription-plans-section {
        padding: 2rem 0;
    }

    .subscription-plan-card {
        padding: 1.5rem;
    }
}

/* Checkout Page */
.checkout-page-main {
    min-height: 80vh;
    padding: 3rem 0;
    background: var(--bg-light);
}

.checkout-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.checkout-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.checkout-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    font-family: 'Inter', sans-serif;
}

.checkout-page-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.checkout-page-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.checkout-left-column {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checkout-plan-summary-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
}

.checkout-summary-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    font-family: 'Inter', sans-serif;
}

.checkout-plan-details {
    text-align: center;
}

.checkout-plan-name-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    font-family: 'Inter', sans-serif;
}

.checkout-plan-price-display {
    margin: 0.5rem 0;
}

.checkout-price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--orange-primary);
    font-family: 'Inter', sans-serif;
}

.checkout-price-period {
    font-size: 1rem;
    color: var(--text-light);
    margin-left: 0.25rem;
}

.checkout-right-column {
    position: sticky;
    top: 2rem;
}

.checkout-order-summary {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--border-color);
}

.checkout-form-section {
    margin-bottom: 2rem;
}

.checkout-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 1.25rem 0;
    font-family: 'Inter', sans-serif;
}

.checkout-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkout-form-group {
    margin-bottom: 1.25rem;
}

.checkout-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.checkout-form-group .required {
    color: #ef4444;
}

.checkout-form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.checkout-form-group input:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(249, 112, 21, 0.1);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-method-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.payment-method-option:hover {
    border-color: var(--orange-primary);
    background: #fff8f5;
}

.payment-method-option input[type="radio"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--orange-primary);
}

.payment-method-option input[type="radio"]:checked+.payment-method-label {
    color: var(--orange-primary);
}

.payment-method-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.payment-method-label i {
    font-size: 1.5rem;
}

.payment-fields {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.checkout-total {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.checkout-total-row:last-child {
    margin-bottom: 0;
}

.checkout-total-final {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.checkout-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.checkout-cancel-btn {
    flex: 1;
    padding: 1rem 2rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.checkout-cancel-btn:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

.checkout-submit-btn {
    flex: 2;
    padding: 1rem 2rem;
    background: var(--orange-primary);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.checkout-submit-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 112, 21, 0.3);
}

.checkout-security-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.checkout-security-info i {
    color: #f97015;
    margin-right: 0.5rem;
    font-size: 1.125rem;
}

@media (max-width: 968px) {
    .checkout-page-content {
        grid-template-columns: 1fr;
    }

    .checkout-right-column {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-page-container {
        padding: 0 1rem;
    }

    .checkout-page-title {
        font-size: 2rem;
    }

    .checkout-left-column,
    .checkout-order-summary {
        padding: 1.5rem;
    }

    .checkout-form-row {
        grid-template-columns: 1fr;
    }

    .checkout-form-actions {
        flex-direction: column;
    }

    .checkout-cancel-btn,
    .checkout-submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .checkout-page-main {
        padding: 2rem 0;
    }

    .checkout-page-header {
        margin-bottom: 2rem;
    }

    .checkout-page-title {
        font-size: 1.75rem;
    }

    .checkout-left-column,
    .checkout-order-summary {
        padding: 1.25rem;
    }
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 0;
    background: var(--white);
}

@media (max-width: 768px) {
    .how-it-works-section {
        padding: 3rem 0;
    }

    .steps-grid {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .step-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .how-it-works-section {
        padding: 2rem 0;
    }

    .steps-grid {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .step-card {
        padding: 1.25rem;
    }
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    row-gap: 2rem;
    column-gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--orange-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--orange-primary);
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.step-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 5rem 0;
    background: var(--white);
}

@media (max-width: 768px) {
    .why-choose-section {
        padding: 3rem 0;
    }

    .why-choose-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .why-choose-section {
        padding: 2rem 0;
    }

    .why-choose-grid {
        gap: 1.25rem;
    }
}

.why-choose-content {
    max-width: 1000px;
    margin: 0 auto;
}

.features-list {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(249, 112, 21, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-primary);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: var(--white);
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 2rem 0;
    }

    .testimonials-grid {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .testimonial-card {
        padding: 1.25rem;
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    row-gap: 2rem;
    column-gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--orange-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-location {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Specialists Near You Section */
.specialists-near-section {
    padding: 5rem 0;
    background: var(--white);
}

.specialists-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

/* Map Container (Left Side) */
.map-container {
    background: #F5F5F0;
    border-radius: 16px;
    overflow: hidden;
    min-height: 600px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 600px;
    position: relative;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: 0;
    border-radius: 12px;
    display: block;
}

.map-pins {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.map-pin-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.map-pin-small {
    position: absolute;
    z-index: 1;
}

.map-text-content {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.map-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.map-coming-soon {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Specialists List (Right Side) */
.specialists-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
    -ms-overflow-style: none;
    /* IE and Edge */
}

.specialists-list::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

.specialist-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
}

.specialist-card:hover {
    box-shadow: var(--shadow-md);
    border: 2px solid var(--orange-primary) !important;
}

/* Specialist card avatar container */
.specialist-card .specialist-avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.avatar-placeholder {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-hover) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
    box-sizing: border-box;
}

.specialist-avatar-img {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--orange-primary);
    display: block;
    flex-shrink: 0;
    box-sizing: border-box;
}

.specialist-avatar-placeholder {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-hover) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    border: 2px solid var(--orange-primary);
    flex-shrink: 0;
    box-sizing: border-box;
}

.no-specialists {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-light);
}

.no-specialists p {
    font-size: 1.125rem;
    margin: 0;
}

.no-specialists-filtered {
    padding: 2rem;
    text-align: center;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.no-specialists-filtered p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0;
}

.specialists-loading {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.specialists-loading p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 1rem 0 0 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid rgba(249, 112, 21, 0.2);
    border-top-color: var(--orange-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.specialist-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.specialist-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.specialist-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.specialist-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.specialist-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.verified-badge {
    background: #10B981;
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.verified-badge svg {
    width: 10px;
    height: 10px;
}

.specialist-category {
    font-size: 0.875rem;
    color: var(--orange-primary);
    font-weight: 500;
    margin: 0;
}

.specialist-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.rating-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.reviews-count {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.specialist-location-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.specialist-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.specialist-location svg {
    flex-shrink: 0;
}

.distance {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.specialist-services {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(249, 112, 21, 0.1);
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.service-icon:hover {
    background: rgba(249, 112, 21, 0.2);
    transform: translateY(-2px);
}

.service-icon svg {
    flex-shrink: 0;
}

.view-more-link {
    text-align: center;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border-radius: 8px;
}

.view-more-link:hover {
    color: var(--orange-primary);
    background: rgba(249, 112, 21, 0.05);
}

.view-more-link svg {
    transition: transform 0.3s;
}

.view-more-link:hover svg {
    transform: translateX(4px);
}

/* Specialist Card Selected State */
.specialist-card-selected {
    border: 2px solid var(--orange-primary) !important;
    box-shadow: 0 4px 12px rgba(249, 112, 21, 0.15);
}

.specialist-card-selected:hover {
    border: 2px solid var(--orange-primary) !important;
    box-shadow: 0 4px 12px rgba(249, 112, 21, 0.15);
}

/* Specialist Actions Buttons */
.specialist-actions {
    display: none;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.specialist-card-selected .specialist-actions {
    display: flex;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.call-btn {
    background: var(--orange-primary);
    color: white;
}

.call-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 112, 21, 0.3);
}

.message-btn {
    background: var(--orange-primary);
    color: white;
    border: none;
    cursor: pointer;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

.message-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 112, 21, 0.3);
}

.message-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.action-btn svg {
    flex-shrink: 0;
}

/* Specialist Modal */
.specialist-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
}

.specialist-modal.modal-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s;
    z-index: 10000;
    cursor: default;
    pointer-events: auto;
}

.modal-content * {
    pointer-events: auto;
}

.specialist-modal.modal-active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.3s;
    z-index: 10001;
}

.modal-close:hover {
    background: var(--border-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-avatar {
    flex-shrink: 0;
}

.modal-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--orange-primary);
    display: block;
    box-shadow: 0 4px 12px rgba(249, 112, 21, 0.2);
}

.avatar-placeholder-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-hover) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.75rem;
}

.modal-header-info {
    flex: 1;
}

.modal-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.modal-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-profession {
    font-size: 1rem;
    color: var(--orange-primary);
    font-weight: 500;
    margin: 0 0 0.75rem 0;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-item svg {
    flex-shrink: 0;
}

.detail-item>div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.detail-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-description {
    margin-bottom: 2rem;
}

.modal-description h3,
.modal-services-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(249, 112, 21, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(249, 112, 21, 0.15);
    transition: all 0.3s;
    min-width: 120px;
    cursor: pointer;
}

.service-icon-large:hover {
    background: rgba(249, 112, 21, 0.15);
    border-color: var(--orange-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(249, 112, 21, 0.2);
}

.service-icon-large svg {
    flex-shrink: 0;
}

.service-icon-large span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.modal-services h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.modal-description p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.modal-services {
    margin-bottom: 2rem;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tag {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.modal-actions .action-btn {
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .modal-name-row {
        justify-content: center;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .action-btn {
        width: 100%;
    }
}

/* Why Choose NIDFIL Section */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    row-gap: 2rem;
    column-gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        row-gap: 1.5rem;
        column-gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        row-gap: 1.5rem;
        column-gap: 0;
    }

    .why-choose-card {
        aspect-ratio: 1 / 1;
        max-width: 100%;
    }

    .why-choose-image {
        min-height: 350px;
    }
}

.why-choose-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.why-choose-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(249, 112, 21, 0.2);
}

.why-choose-card:hover .why-choose-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.why-choose-image {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 1;
}

.why-choose-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.why-choose-card:hover .why-choose-img {
    transform: scale(1.05);
}

.why-choose-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.65) 60%, rgba(0, 0, 0, 0.3) 100%);
    padding: 2rem 1.5rem 1.75rem;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: auto;
}

/* Fallback for broken images */
.why-choose-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 112, 21, 0.1) 0%, rgba(249, 112, 21, 0.05) 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-choose-image:has(img[src=""])::before,
.why-choose-image:not(:has(img))::before {
    opacity: 1;
}

.image-placeholder {
    width: 80px;
    height: 80px;
    color: var(--orange-primary);
    opacity: 0.5;
}

.image-placeholder svg {
    width: 100%;
    height: 100%;
}

.why-choose-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.why-choose-card-text {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9375rem;
}

/* CTA for Professionals Section */
.cta-professionals-section {
    padding: 5rem 0;
    background: var(--orange-primary);
    color: var(--white);
}

@media (max-width: 768px) {
    .cta-professionals-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .cta-professionals-section {
        padding: 2rem 0;
    }
}

.cta-professionals-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-professionals-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-professionals-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-white {
    background: var(--white);
    color: var(--orange-primary);
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-statistics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    row-gap: 2rem;
    column-gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.cta-statistics .stat-label,
.cta-professionals-section .stat-label {
    font-size: 0.875rem;
    color: var(--white) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 0.01em;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-image-container {
        margin-bottom: 2rem;
        border-radius: 30px;
    }

    .hero-image {
        border-radius: 12px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
        justify-content: center;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        row-gap: 1.5rem;
        column-gap: 0;
        margin-top: 2rem;
    }

    .step-card {
        padding: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        row-gap: 1.5rem;
        column-gap: 0;
        margin-top: 2rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-item:hover {
        transform: translateY(-4px);
    }

    .specialists-content {
        grid-template-columns: 1fr;
    }

    .map-container {
        min-height: 400px;
    }

    .map-placeholder {
        min-height: 400px;
    }

    .specialists-list {
        max-height: none;
    }

    .specialist-card {
        flex-direction: row;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        row-gap: 1.5rem;
        column-gap: 0;
    }

    .cta-statistics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        row-gap: 1.5rem;
        column-gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .cta-professionals-title {
        font-size: 2rem;
    }

    .cta-professionals-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 1rem;
    }

    .steps-grid {
        gap: 1.25rem;
        row-gap: 1.25rem;
        column-gap: 0;
        margin-top: 1.5rem;
    }

    .step-card {
        padding: 1.25rem;
    }

    .why-choose-grid {
        gap: 1.25rem;
        row-gap: 1.25rem;
        column-gap: 0;
    }

    .testimonials-grid {
        gap: 1.25rem;
        row-gap: 1.25rem;
        column-gap: 0;
    }

    .cta-statistics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        row-gap: 1.25rem;
        column-gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* WordPress Core Styles */
.wp-block-group {
    margin-bottom: 2rem;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100%;
    max-width: 100%;
}

/* Footer Styles */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    row-gap: 2rem;
    column-gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.footer-logo a:hover {
    opacity: 0.85;
}

.footer-logo-image {
    height: 60px;
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
}

.footer-logo-image svg text {
    fill: var(--white);
}

.footer-logo-image svg path[stroke="#f97015"],
.footer-logo-image svg path[stroke="#FF6B35"] {
    stroke: var(--orange-primary);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.social-link i {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

.social-link svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.social-link:hover {
    background: var(--orange-primary);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--orange-primary);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact svg {
    color: var(--orange-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--orange-primary);
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2.5rem 0 1.25rem;
    }

    .footer-container {
        padding: 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        row-gap: 2rem;
        column-gap: 0;
    }

    .footer-column {
        gap: 0.75rem;
    }

    .footer-logo-image {
        height: 50px;
    }

    .footer-description {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 0.875rem;
    }

    .footer-links {
        gap: 0.625rem;
    }

    .footer-contact {
        gap: 0.875rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding-top: 1.25rem;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 2rem 0 1rem;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
        row-gap: 1.5rem;
        column-gap: 0;
    }

    .footer-column {
        gap: 0.5rem;
    }

    .footer-logo-image {
        height: 45px;
    }

    .footer-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .footer-title {
        font-size: 0.9375rem;
        margin-bottom: 0.75rem;
    }

    .footer-links {
        gap: 0.5rem;
    }

    .footer-links a {
        font-size: 0.875rem;
    }

    .footer-contact {
        gap: 0.75rem;
    }

    .footer-contact li {
        font-size: 0.875rem;
        gap: 0.625rem;
    }

    .footer-contact svg {
        width: 14px;
        height: 14px;
    }

    .footer-bottom {
        gap: 0.75rem;
        padding-top: 1rem;
    }

    .footer-bottom p {
        font-size: 0.8125rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-legal a {
        font-size: 0.8125rem;
    }

    .footer-legal span {
        display: none;
    }
}

/* Dashboard Styles */
.dashboard-main {
    min-height: calc(100vh - 200px);
    background: var(--bg-light);
    padding: 2rem 0;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.dashboard-sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    max-width: 100%;
}

/* Force sidebar visibility on all devices */
.dashboard-sidebar,
.dashboard-sidebar.mobile-open,
.dashboard-sidebar:not(.mobile-open) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Sidebar always visible on all devices */
@media (max-width: 767px) {
    .dashboard-sidebar {
        position: static !important;
        transform: none !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-bottom: 1rem;
    }
}

.sidebar-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.profile-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--orange-primary);
}

.edit-image-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange-primary);
    color: var(--white);
    border: 3px solid var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.edit-image-btn:hover {
    background: var(--orange-hover);
    transform: scale(1.1);
}

.image-upload-actions {
    position: absolute;
    bottom: -85px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 100;
    min-width: 200px;
    border: 1px solid rgba(249, 112, 21, 0.1);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.image-upload-actions::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.05));
}

.image-upload-actions.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: all !important;
}

.image-upload-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
}

.image-upload-status {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 100%;
}

.image-upload-status:empty {
    display: none;
}

.image-upload-status.info {
    background: rgba(33, 150, 243, 0.1);
    color: #1976d2;
}

.image-upload-status.success {
    background: rgba(76, 175, 80, 0.1);
    color: #388e3c;
}

.image-upload-status.error {
    background: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-sm.btn-primary {
    background: var(--orange-primary);
    color: var(--white);
}

.btn-sm.btn-primary:hover {
    background: var(--orange-hover);
    transform: translateY(-1px);
}

.btn-sm.btn-outline {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-sm.btn-outline:hover {
    border-color: var(--orange-primary);
    color: var(--orange-primary);
}

.btn-sm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-sm svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.profile-email {
    font-size: 0.875rem;
    color: var(--text-light);
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-light);
    color: var(--orange-primary);
}

.nav-item.active {
    background: rgba(249, 112, 21, 0.1);
    color: var(--orange-primary);
    font-weight: 600;
}

.nav-item svg {
    flex-shrink: 0;
}

.nav-item-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--border-color);
    border-radius: 10px;
    background: #dc2626;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-item-logout:hover {
    background: #b91c1c;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.nav-item-logout:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
}

.nav-item-logout svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.nav-item-logout span {
    font-size: 0.9375rem;
}

.badge {
    margin-left: auto;
    background: var(--orange-primary);
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

/* ========== Specialist Profile Redesign (same as reference image) ========== */
.specialist-profile-redesign {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.specialist-profile-redesign .sp-sidebar {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
}

.specialist-profile-redesign .sp-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.specialist-profile-redesign .sp-logo {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.specialist-profile-redesign .sp-sidebar-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.specialist-profile-redesign .sp-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--text-dark);
    transition: background 0.2s, color 0.2s;
}

.specialist-profile-redesign .sp-icon-btn:hover {
    background: var(--bg-light);
    color: var(--orange-primary);
}

.specialist-profile-redesign .sp-sidebar-profile {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.specialist-profile-redesign .sp-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.specialist-profile-redesign .sp-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #86efac;
}

.specialist-profile-redesign .sp-avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #22c55e;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.specialist-profile-redesign .sp-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.specialist-profile-redesign .sp-email {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.specialist-profile-redesign .sp-verified-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: #10b981;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
}

.specialist-profile-redesign .sp-nav .nav-item {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #737b8c;
}

.specialist-profile-redesign .sp-nav .nav-item.active {
    background: #fff3eb;
    color: #f97015;
    font-weight: 500;
}

.specialist-profile-redesign .sp-nav .nav-item.active svg {
    color: #f97015;
}

.specialist-profile-redesign .sp-nav .nav-item:hover {
    background: rgba(249, 112, 21, 0.08);
    color: #1f242e;
}

.specialist-profile-redesign .sp-nav .nav-item:hover:not(.active) {
    color: #1f242e;
}

.specialist-profile-redesign .sp-logout {
    background: #dc2626;
    color: var(--white);
    margin-top: auto;
    padding: 12px 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.specialist-profile-redesign .sp-logout:hover {
    background: #b91c1c;
    color: var(--white);
}

/* Main content redesign */
.specialist-profile-redesign .sp-content {
    padding: 1.5rem 2rem;
    width: 800px;
}

.specialist-profile-redesign .sp-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
}

.specialist-profile-redesign .sp-page-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.specialist-profile-redesign .sp-title-icon {
    color: var(--text-light);
    flex-shrink: 0;
}

.specialist-profile-redesign .sp-page-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.specialist-profile-redesign .sp-header-icons {
    display: flex;
    gap: 0.5rem;
}

.specialist-profile-redesign .sp-profile-body {
    max-width: 720px;
}

/* Hero / identity block in main content (not in sidebar): avatar left, name + Verificado Pro right */
.specialist-profile-redesign .sp-hero {
    margin-bottom: 1.5rem;
}
.specialist-profile-redesign .sp-sidebar .notifications-dropdown {
    position: relative;
}
.specialist-profile-redesign .sp-sidebar .notifications-dropdown-menu {
    min-width: 360px;
    right: 0;
}

.specialist-profile-redesign .sp-hero-main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.specialist-profile-redesign .sp-hero-avatar-wrap {
    flex-shrink: 0;
    position: relative;
}

.specialist-profile-redesign .sp-hero-avatar-bg {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.specialist-profile-redesign .sp-hero-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.specialist-profile-redesign .sp-hero-avatar-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #22c55e;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    box-sizing: border-box;
    z-index: 10;
}

.specialist-profile-redesign .sp-hero-avatar-badge svg {
    width: 12px;
    height: 12px;
}

.specialist-profile-redesign .sp-hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.specialist-profile-redesign .sp-hero-name-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.2;
}

.specialist-profile-redesign .sp-hero-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.specialist-profile-redesign .sp-hero-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    z-index: 10;
}

.specialist-profile-redesign .sp-hero-check svg {
    display: block;
    vertical-align: middle;
}

.specialist-profile-redesign .sp-hero-check-light {
    color: #4ade80;
}

.specialist-profile-redesign .sp-hero-status-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.3;
}

.specialist-profile-redesign .sp-hero-verified {
    font-size: 0.9375rem;
    color: #4ade80;
    font-weight: 500;
}

.specialist-profile-redesign .sp-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.specialist-profile-redesign .sp-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.specialist-profile-redesign .sp-hero-meta-label {
    font-size: 11px;
    line-height: 1;
    color: #6b7280;
    font-weight: 600;
}

.specialist-profile-redesign .sp-hero-meta-value {
    font-size: 11px;
    line-height: 1;
    color: #1f2937;
    font-weight: 600;
}

.specialist-profile-redesign .sp-hero-meta-item-verify.is-verified {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.specialist-profile-redesign .sp-hero-meta-item-verify.is-verified .sp-hero-meta-value {
    color: #16a34a;
}

.specialist-profile-redesign .sp-hero-meta-item-verify.is-not-verified {
    background: #fff7ed;
    border-color: #fed7aa;
}

.specialist-profile-redesign .sp-hero-meta-item-verify.is-not-verified .sp-hero-meta-value {
    color: #ea580c;
}

/* Profile details section: label | value | edit icon — Inter 14px/20px weight 500 #737b8c */
.specialist-profile-redesign .sp-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #737b8c;
}

.specialist-profile-redesign .sp-detail-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    min-height: 1.5rem;
}

.specialist-profile-redesign .sp-detail-label {
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #737b8c;
    min-width: 100px;
    flex-shrink: 0;
}

.specialist-profile-redesign .sp-detail-value {
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #1f242e;
    flex: 1;
    min-width: 0;
}

.specialist-profile-redesign .sp-detail-edit {
    background: transparent;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-left: auto;
    flex-shrink: 0;
    transition: color 0.2s, background 0.2s;
}

.specialist-profile-redesign .sp-detail-edit:hover {
    color: #6c757d;
    background: rgba(0, 0, 0, 0.04);
}

.specialist-profile-redesign .sp-detail-edit svg {
    width: 15px;
    height: 15px;
}

.specialist-profile-redesign .sp-detail-input {
    flex: 1;
    min-width: 0;
    max-width: 280px;
    padding: 0.35rem 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #1f242e;
}

.specialist-profile-redesign .sp-block {
    margin-bottom: 1.75rem;
}

.specialist-profile-redesign .sp-block-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.specialist-profile-redesign .sp-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.specialist-profile-redesign .sp-block-head .sp-block-title {
    margin-bottom: 0;
}

/* Redes Sociales block: horizontal row = label | pill (x + URL) | external link icon — text 14px/20px/500 */
.specialist-profile-redesign .sp-block--social {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.specialist-profile-redesign .sp-block--social .sp-block-title,
.specialist-profile-redesign .sp-block--photos .sp-block-title,
.specialist-profile-redesign .sp-block--bio .sp-block-title {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: #1f242e;
}

.specialist-profile-redesign .sp-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.specialist-profile-redesign .sp-block--social .sp-social-links {
    flex: 1;
    min-width: 0;
}

.specialist-profile-redesign .sp-social-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e9ecef;
    border-radius: 999px;
    border: none;
    max-width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
}

.specialist-profile-redesign .sp-social-remove {
    background: none;
    border: none;
    color: #1f242e;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    cursor: pointer;
    padding: 0 2px 0 0;
    flex-shrink: 0;
}

.specialist-profile-redesign .sp-social-url {
    font-family: inherit;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: #737b8c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.specialist-profile-redesign .sp-social-external-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2cae8c;
    flex-shrink: 0;
}

.specialist-profile-redesign .sp-social-external-link:hover {
    color: #0d9488;
}

.specialist-profile-redesign .sp-social-external-link svg {
    width: 18px;
    height: 18px;
}

.specialist-profile-redesign .sp-social-external {
    color: var(--text-light);
    flex-shrink: 0;
}

.specialist-profile-redesign .sp-legal-info {
    margin-bottom: 1.75rem;
}

.specialist-profile-redesign .sp-legal-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 1rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.specialist-profile-redesign .sp-legal-disclaimer-icon,
.specialist-profile-redesign .sp-legal-disclaimer svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #5c6370;
}

.specialist-profile-redesign .sp-legal-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.specialist-profile-redesign .sp-legal-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
}

.specialist-profile-redesign .sp-legal-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.specialist-profile-redesign .sp-legal-card-head h4 {
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.specialist-profile-redesign .sp-legal-dni {
    font-family: inherit;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.specialist-profile-redesign .sp-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    background: var(--white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #737b8c;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.specialist-profile-redesign .sp-upload-btn:hover {
    background: var(--bg-light);
    border-color: #0d9488;
    color: #0d9488;
}

.specialist-profile-redesign .sp-add-photo-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22c55e;
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.specialist-profile-redesign .sp-add-photo-btn svg {
    width: 16px;
    height: 16px;
}

.specialist-profile-redesign .sp-add-photo-btn:hover {
    background: #16a34a;
    transform: scale(1.05);
}

.specialist-profile-redesign .sp-work-photos {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.specialist-profile-redesign .sp-work-photo-slot {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #E8EBEE;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #737b8c80;
}

.specialist-profile-redesign .sp-bio-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 23px;
    color: #737b8c;
    margin: 0;
}

@media (max-width: 640px) {
    .specialist-profile-redesign .sp-legal-cards {
        grid-template-columns: 1fr;
    }
}

.dashboard-content {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.dashboard-section {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-section.active {
    display: block !important;
    opacity: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.edit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--orange-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark);
}

.icon-btn:hover {
    background: var(--orange-primary);
    color: var(--white);
    border-color: var(--orange-primary);
}

.card-body {
    color: var(--text-light);
    line-height: 1.6;
}

.bio-text {
    margin: 0;
    min-height: 60px;
}

.bio-edit-form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
}

.bio-edit-form textarea:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(249, 112, 21, 0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Verification section - 3 columns layout */
.profile-card:has(.verification-description) .info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
}

.info-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

.info-input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.info-input:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(249, 112, 21, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-start;
}

/* Verification Requirement Section Styling */
.verification-description {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-left: 3px solid var(--orange-primary);
    border-radius: 6px;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 0;
}

.verification-error {
    display: none;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 0.875rem;
    line-height: 1.5;
}

.verification-error strong {
    font-weight: 600;
}

/* Verification section - 3 columns layout (fallback for browsers without :has() support) */
.verification-section .info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Messages Styles */
.messages-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    height: 600px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.messages-sidebar {
    background: var(--bg-light);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.messages-search {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: block;
    visibility: visible;
    opacity: 1;
    flex-shrink: 0;
}

.messages-search input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    display: block;
    visibility: visible;
    background: var(--white);
    color: var(--text-dark);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, border-left 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    border-left: 3px solid transparent;
    -webkit-user-select: none;
    user-select: none;
}

.conversation-item:hover {
    background: var(--white);
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.conversation-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.conversation-preview {
    font-size: 0.875rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.messages-chat {
    display: flex;
    flex-direction: column;
    background: var(--white);
    position: relative;
    min-height: 0;
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.chat-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}

.chat-status {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    position: relative;
}

.message.received {
    align-self: flex-start;
    background: var(--bg-light);
    color: var(--text-dark);
}

.message.sent {
    align-self: flex-end;
    background: var(--orange-primary);
    color: var(--white);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    display: block;
}

.chat-input-container {
    display: flex !important;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    align-items: center;
    flex-shrink: 0;
    visibility: visible;
    opacity: 1;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.attach-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.attach-btn:hover {
    background: var(--white);
    border-color: var(--orange-primary);
    color: var(--orange-primary);
}

.attach-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chat-input-container input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
}

.chat-input-container input:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
}

.send-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--orange-primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-btn:hover {
    background: var(--orange-hover);
}

/* Specialist messages layout overrides */
.specialist-profile-redesign #messagesSection .messages-container {
    grid-template-columns: 2fr 1fr;
    height: 620px;
    border-radius: 16px;
    border-color: #E5E7EB;
    background: #F3F4F6;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.specialist-profile-redesign #messagesSection .messages-chat {
    background: #FFFFFF;
}

.specialist-profile-redesign #messagesSection .messages-sidebar {
    background: #F9FAFB;
    border-left: 1px solid #E5E7EB;
}

.specialist-profile-redesign #messagesSection .messages-search {
    border-bottom: 1px solid #E5E7EB;
}

.specialist-profile-redesign #messagesSection .messages-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #E5E7EB;
}

.specialist-profile-redesign #messagesSection .messages-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.specialist-profile-redesign #messagesSection .messages-sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
}

.specialist-profile-redesign #messagesSection .messages-sidebar-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.specialist-profile-redesign #messagesSection .messages-sidebar-location {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    color: #6B7280;
}

.specialist-profile-redesign #messagesSection .messages-sidebar-edit {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9CA3AF;
}

.specialist-profile-redesign #messagesSection .messages-sidebar-edit:hover {
    background: #E5E7EB;
    color: #4B5563;
}

.specialist-profile-redesign #messagesSection .conversation-item {
    border-left: none;
    border-bottom: 1px solid #E5E7EB;
}

.specialist-profile-redesign #messagesSection .conversation-item.active {
    background: #E0F2FE;
}

.specialist-profile-redesign #messagesSection .conversation-avatar {
    background: #f97015;
}

.specialist-profile-redesign #messagesSection .conversations-list .conversation-item:nth-child(2) .conversation-avatar {
    background: #3B82F6;
}

.specialist-profile-redesign #messagesSection .conversations-list .conversation-item:nth-child(3) .conversation-avatar {
    background: #F59E0B;
}

.specialist-profile-redesign #messagesSection .conversations-list .conversation-item:nth-child(4) .conversation-avatar {
    background: #EF4444;
}

.specialist-profile-redesign #messagesSection .conversation-time {
    color: #9CA3AF;
}

.specialist-profile-redesign #messagesSection .conversation-time::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f97015;
    margin-left: 0.35rem;
}

.specialist-profile-redesign #messagesSection .message.received {
    background: #F3F4F6;
    color: #111827;
}

.specialist-profile-redesign #messagesSection .message.sent {
    background: #D1FAE5;
    color: #065F46;
}

.specialist-profile-redesign #messagesSection .chat-header {
    border-bottom: 1px solid #E5E7EB;
    padding: 1rem 1.5rem;
}

.specialist-profile-redesign #messagesSection .chat-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.specialist-profile-redesign #messagesSection .chat-user-meta h3 {
    font-size: 1rem;
}

.specialist-profile-redesign #messagesSection .chat-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.specialist-profile-redesign #messagesSection .chat-avatar {
    width: 69px;
    height: 40px;
    border-radius: 999px;
    background: #f97015;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.875rem;
}

.specialist-profile-redesign #messagesSection .chat-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.specialist-profile-redesign #messagesSection .chat-status {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    color: #6B7280;
}

.specialist-profile-redesign #messagesSection .chat-confirm-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: #f97015;
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.specialist-profile-redesign #messagesSection .chat-confirm-btn:hover {
    background: #059669;
}

.specialist-profile-redesign #messagesSection .chat-input-container {
    border-top: none;
    background: #F9FAFB;
}

.specialist-profile-redesign #messagesSection .chat-input-container input {
    background: #E5E7EB;
    border: none;
    border-radius: 999px;
}

.specialist-profile-redesign #messagesSection .attach-btn {
    background: transparent;
    border: none;
    color: #6B7280;
}

.specialist-profile-redesign #messagesSection .attach-btn:hover {
    background: #E5E7EB;
    color: #4B5563;
}

.specialist-profile-redesign #messagesSection .send-btn {
    border-radius: 999px;
    background: #f97015;
}

.specialist-profile-redesign #messagesSection .send-btn:hover {
    background: #e8650f;
}

/* Message Images and Documents */
.message-image {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.message-image:hover {
    opacity: 0.9;
}

.message-document {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

/* Real-Time Messaging Enhancements */
.message-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

/* Review System Styles */
.review-form {
    padding: 1rem 0;
}

.specialist-search-container {
    position: relative;
}

.specialist-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
}

.specialist-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 0.25rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.specialist-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.specialist-dropdown-item:last-child {
    border-bottom: none;
}

.specialist-dropdown-item:hover {
    background: var(--bg-light);
}

.star-rating-input {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.star-rating-input .star {
    cursor: pointer;
    transition: transform 0.2s;
}

.star-rating-input .star:hover {
    transform: scale(1.1);
}

.reviews-list-container {
    margin-top: 2rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.review-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.reviewer-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.review-rating {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.review-rating .star {
    width: 16px;
    height: 16px;
}

.review-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.review-edited-badge {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: normal;
    margin-left: 0.5rem;
}

.review-time-remaining {
    font-size: 0.75rem;
    color: var(--orange-primary);
    font-weight: 500;
}

.no-reviews {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.no-reviews p {
    margin: 0;
    font-size: 1rem;
}

.review-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.form-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.form-actions .btn-primary {
    background: var(--orange-primary);
    color: var(--white);
}

.form-actions .btn-primary:hover {
    background: var(--orange-hover);
}

.form-actions .btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.form-actions .btn-outline:hover {
    background: var(--bg-light);
}

.message-status {
    font-size: 0.75rem;
    opacity: 0.7;
}

.message-status.sent {
    color: var(--white);
}

.message-status.read {
    color: #4CAF50;
}

.message-file {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.message.received .message-file {
    background: var(--white);
    border: 1px solid var(--border-color);
}

.message.sent .message-file {
    background: rgba(255, 255, 255, 0.15);
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    display: block;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.file-name:hover {
    text-decoration: underline;
}

.file-size {
    font-size: 0.75rem;
    opacity: 0.7;
    display: block;
}

.conversation-unread {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--orange-primary);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.conversation-item {
    position: relative;
}

.chat-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    font-size: 0.9375rem;
    text-align: center;
    padding: 2rem;
}

.chat-empty-state p {
    margin: 0;
}

/* Loading spinner for file upload */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.message-document svg {
    flex-shrink: 0;
    color: var(--orange-primary);
}

.document-name {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text-dark);
}

.document-size {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.download-btn {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: var(--orange-primary);
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.download-btn:hover {
    background: var(--orange-hover);
    color: var(--white);
}

/* Unread Badge */
.unread-badge {
    margin-left: auto;
    background: var(--orange-primary);
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.conversation-item.active {
    background: var(--white);
    border-left: 3px solid var(--orange-primary);
}

.conversation-item.active .conversation-name {
    font-weight: 600;
    color: var(--orange-primary);
}

.no-conversations {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9375rem;
}

.conversation-item.conversation-new {
    animation: conversation-pulse 0.8s ease-out 0s 3 alternate;
}

@keyframes conversation-pulse {
    from {
        background-color: #ECFEFF;
    }
    to {
        background-color: #F9FAFB;
    }
}

/* Services Styles */
.services-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--orange-primary);
}

.service-card-content {
    flex: 1;
}

.service-name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.service-card-actions {
    display: flex;
    gap: 0.5rem;
}

.service-card-actions .icon-btn {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-actions .icon-btn:hover {
    background: var(--bg-light);
    border-color: var(--orange-primary);
    color: var(--orange-primary);
}

.service-card-actions .delete-service-btn:hover {
    background: #fee;
    border-color: #f44;
    color: #f44;
}

/* Service Modal */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.service-modal .modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.service-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.service-modal .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.service-modal .modal-close {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.service-modal .modal-close:hover {
    background: var(--bg-light);
    color: var(--orange-primary);
}

.service-modal .modal-body {
    padding: 1.5rem;
}

.service-modal .form-group {
    margin-bottom: 1.5rem;
}

.service-modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.service-modal .form-input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.service-modal .form-input:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(249, 112, 21, 0.1);
}

.service-modal .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.service-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.service-description {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--orange-primary);
    margin-bottom: 0.5rem;
}

.service-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Analytics Styles */
.analytics-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--orange-primary);
}

.analytics-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.analytics-icon-primary {
    background: rgba(249, 112, 21, 0.1);
    color: var(--orange-primary);
}

.analytics-icon-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.analytics-icon-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.analytics-icon-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.analytics-content-info {
    flex: 1;
}

.analytics-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.analytics-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.analytics-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.chart-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 1.5rem 0;
}

.chart-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
}

.chart-placeholder .no-data {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0;
}

/* Reviews Styles */
.reviews-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.reviews-summary {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-value-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.rating-count {
    font-size: 0.9375rem;
    color: var(--text-light);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.reviewer-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.review-rating {
    display: flex;
    gap: 0.25rem;
}

.review-rating .star {
    width: 16px;
    height: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.review-rating .star.filled path {
    fill: #FFD700;
}

.review-rating .star.empty path {
    fill: #E5E5E5;
}

.review-rating.editable-rating .star:hover {
    transform: scale(1.2);
}

.review-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.review-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.rating-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-input .rating-star {
    cursor: pointer;
    transition: all 0.2s;
}

.rating-input .rating-star:hover {
    transform: scale(1.1);
}

.rating-input .rating-star.active path,
.rating-input .rating-star:hover path {
    fill: #FFD700;
}

/* Responsive Dashboard */
@media (min-width: 769px) and (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static !important;
        display: block !important;
        visibility: visible !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 1.5rem;
        border-radius: 16px;
        top: auto !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .dashboard-sidebar-overlay {
        display: none !important;
    }

    .sidebar-close-mobile {
        display: none !important;
    }

    .messages-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .messages-sidebar {
        max-height: 300px;
    }
}

@media (max-width: 767px) {
    .dashboard-main {
        padding: 2rem 0;
    }

    .dashboard-container {
        padding: 0 1rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Sidebar always visible on mobile */
    .dashboard-sidebar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-bottom: 1rem;
    }

    .sidebar-header {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .edit-image-btn {
        width: 36px;
        height: 36px;
    }

    .image-upload-actions {
        bottom: -75px;
        min-width: 180px;
        padding: 0.875rem 1rem;
    }

    .profile-name {
        font-size: 1.125rem;
    }

    .profile-email {
        font-size: 0.875rem;
    }

    .dashboard-nav {
        gap: 0.5rem;
    }

    .nav-item {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .nav-item svg {
        width: 18px;
        height: 18px;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-header h1 {
        font-size: 1.5rem;
    }

    .welcome-text {
        font-size: 0.875rem;
    }

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

    .stat-card {
        padding: 1.25rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8125rem;
    }

    .overview-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .overview-card {
        padding: 1.25rem;
    }

    .overview-icon {
        width: 40px;
        height: 40px;
    }

    .overview-icon svg {
        width: 20px;
        height: 20px;
    }

    .overview-content h3 {
        font-size: 1.5rem;
    }

    .overview-content p {
        font-size: 0.8125rem;
    }

    .recent-activity-summary {
        margin-top: 1.5rem;
    }

    .activity-summary-list {
        gap: 1rem;
    }

    .activity-summary-item {
        padding: 1rem;
    }

    .profile-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .card-header h3 {
        font-size: 1.125rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Verification section - single column on mobile */
    .verification-section .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        padding: 0.75rem 0;
    }

    .info-item label {
        font-size: 0.8125rem;
    }

    .info-value,
    .info-input {
        font-size: 0.9375rem;
    }

    .social-links-container {
        gap: 1rem;
    }

    .social-link-item {
        padding: 0.875rem;
    }

    .social-link-item svg {
        width: 18px;
        height: 18px;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .quick-action-btn {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .quick-action-btn svg {
        width: 18px;
        height: 18px;
    }

    .bio-text {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .profile-card {
        margin-bottom: 1rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-actions .btn {
        width: 100%;
    }

    .social-link-value,
    .social-link-input {
        font-size: 0.875rem;
    }

    .bio-edit-form textarea {
        font-size: 0.9375rem;
        padding: 0.875rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-actions .btn {
        width: 100%;
        padding: 0.875rem;
    }

    .activity-timeline {
        gap: 1rem;
    }

    .activity-item {
        padding: 1rem;
    }

    .activity-icon {
        width: 32px;
        height: 32px;
    }

    .activity-icon svg {
        width: 14px;
        height: 14px;
    }

    .activity-text {
        font-size: 0.875rem;
    }

    .activity-time {
        font-size: 0.75rem;
    }

    .messages-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .messages-sidebar {
        max-height: 300px;
        border-bottom: 1px solid var(--border-color);
    }

    .messages-search {
        padding: 1rem;
    }

    .messages-search input {
        font-size: 0.875rem;
        padding: 0.75rem;
    }

    .conversation-item {
        padding: 1rem;
    }

    .conversation-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .conversation-name {
        font-size: 0.9375rem;
    }

    .conversation-preview {
        font-size: 0.8125rem;
    }

    .chat-header {
        padding: 1rem;
    }

    .chat-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .chat-header h3 {
        font-size: 1rem;
    }

    .chat-status {
        font-size: 0.8125rem;
    }

    .chat-messages {
        padding: 1rem;
        max-height: 400px;
    }

    .message {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .message p {
        font-size: 0.875rem;
    }

    .message-time {
        font-size: 0.75rem;
    }

    .chat-input-container {
        padding: 1rem;
    }

    .chat-input-container input {
        font-size: 0.875rem;
        padding: 0.75rem;
    }

    .send-btn {
        width: 40px;
        height: 40px;
    }

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

    .reviews-summary {
        margin-bottom: 1.5rem;
    }

    .rating-stars-large {
        gap: 0.5rem;
    }

    .rating-stars-large svg {
        width: 24px;
        height: 24px;
    }

    .rating-value-large {
        font-size: 2rem;
    }

    .rating-count {
        font-size: 0.875rem;
    }

    .review-card {
        padding: 1.25rem;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .reviewer-info h4 {
        font-size: 0.9375rem;
    }

    .review-rating .star {
        width: 14px;
        height: 14px;
    }

    .review-text {
        font-size: 0.875rem;
    }

    .review-date {
        font-size: 0.8125rem;
    }

    .notifications-list {
        gap: 0;
    }

    .notification-item {
        padding: 1rem;
    }

    .notification-icon {
        width: 36px;
        height: 36px;
    }

    .notification-icon svg {
        width: 18px;
        height: 18px;
    }

    .notification-content h4 {
        font-size: 0.875rem;
    }

    .notification-content p {
        font-size: 0.8125rem;
    }

    .notification-time {
        font-size: 0.75rem;
    }

    .settings-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .settings-label {
        width: 100%;
    }

    .settings-label label {
        font-size: 0.9375rem;
    }

    .settings-description {
        font-size: 0.8125rem;
    }

    .toggle-switch {
        align-self: flex-start;
    }

    .danger-actions {
        flex-direction: column;
    }

    .danger-actions .btn {
        width: 100%;
    }

    .completion-badge {
        font-size: 0.8125rem;
        padding: 0.25rem 0.625rem;
    }

    .completion-text {
        font-size: 0.875rem;
    }

    .edit-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .edit-btn svg {
        width: 16px;
        height: 16px;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
    }

    .icon-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 2.5rem 0;
    }

    .dashboard-container {
        padding: 0 0.75rem;
    }

    .dashboard-sidebar {
        padding: 1rem;
    }

    .profile-image {
        width: 80px;
        height: 80px;
    }

    .edit-image-btn {
        width: 32px;
        height: 32px;
    }

    .edit-image-btn svg {
        width: 16px;
        height: 16px;
    }

    .image-upload-actions {
        bottom: -70px;
        min-width: 160px;
        padding: 0.75rem;
    }

    .image-upload-buttons {
        flex-direction: column;
        width: 100%;
    }

    .image-upload-buttons .btn {
        width: 100%;
    }

    .dashboard-content {
        padding: 0.75rem;
    }

    .section-header h1 {
        font-size: 1.25rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .profile-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .card-header h3 {
        font-size: 1rem;
    }

    .card-body {
        padding-top: 0.5rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-actions .btn {
        width: 100%;
    }

    .nav-item-logout {
        padding: 0.75rem 1rem;
        margin-top: 0.75rem;
    }

    .nav-item-logout svg {
        width: 18px;
        height: 18px;
    }

    .nav-item-logout span {
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}

/* Modern Profile Enhancements */

/* Profile Completion Card */
.completion-card {
    background: linear-gradient(135deg, rgba(249, 112, 21, 0.1) 0%, rgba(249, 112, 21, 0.05) 100%);
    border: 2px solid rgba(249, 112, 21, 0.2);
}

.completion-badge {
    background: var(--orange-primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.completion-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.completion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange-primary) 0%, #ff8c42 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.completion-text {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #f0f2f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
    transition: all 0.25s ease;
}

.stat-card-primary .stat-icon {
    background: rgba(249, 112, 21, 0.1);
    color: #f97015;
    box-shadow: none;
}

.stat-card-success .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-card-info .stat-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    box-shadow: none;
}

.stat-card-warning .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-card-primary:hover .stat-icon {
    background: linear-gradient(135deg, var(--orange-primary) 0%, #ff8c42 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(249, 112, 21, 0.25);
}

.stat-card-info:hover .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
}

.quick-action-btn:hover {
    border-color: var(--orange-primary);
    background: rgba(249, 112, 21, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 112, 21, 0.15);
}

.quick-action-btn svg {
    color: var(--orange-primary);
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 40px;
}

.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(249, 112, 21, 0.1) 0%, rgba(249, 112, 21, 0.05) 100%);
    color: var(--orange-primary);
    border: 1px solid rgba(249, 112, 21, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: var(--orange-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(249, 112, 21, 0.3);
}

.empty-state {
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

.skills-input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    margin-bottom: 1rem;
}

.skills-input:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(249, 112, 21, 0.1);
}

/* Social Media Links */
.social-links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.social-link-item:hover {
    background: var(--white);
    border-color: var(--orange-primary);
    box-shadow: 0 2px 8px rgba(249, 112, 21, 0.1);
}

.social-link-item svg {
    color: var(--orange-primary);
    flex-shrink: 0;
}

.social-link-value {
    flex: 1;
    color: var(--text-dark);
    font-weight: 500;
}

.social-link-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
}

.social-link-input:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(249, 112, 21, 0.1);
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 2rem;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.activity-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

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

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    color: var(--white);
}

.activity-icon-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.activity-icon-info {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.activity-icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.activity-content {
    flex: 1;
    padding-top: 0.25rem;
}

.activity-text {
    margin: 0 0 0.25rem 0;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Settings Section */
.settings-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.settings-label {
    flex: 1;
}

.settings-label label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.settings-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-left: 1rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--orange-primary);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:focus+.toggle-slider {
    box-shadow: 0 0 0 3px rgba(249, 112, 21, 0.2);
}

/* Danger Zone */
.danger-zone {
    border: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.danger-zone .card-header h3 {
    color: #ef4444;
}

.danger-actions {
    display: flex;
    gap: 1rem;
}

.btn-danger {
    color: #ef4444;
    border-color: #ef4444;
}

.btn-danger:hover {
    background: #ef4444;
    color: var(--white);
}

/* Dashboard Overview Section */
.dashboard-overview {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.welcome-text {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 400;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.overview-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.overview-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
}

.overview-icon-primary {
    background: linear-gradient(135deg, var(--orange-primary) 0%, #ff8c42 100%);
}

.overview-icon-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.overview-icon-info {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.overview-icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.overview-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    line-height: 1;
}

.overview-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.recent-activity-summary {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.recent-activity-summary h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.activity-summary-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.activity-summary-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.activity-summary-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-summary-content {
    flex: 1;
}

.activity-summary-content p {
    margin: 0 0 0.25rem 0;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.activity-summary-content span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    gap: 0.75rem;
    color: var(--orange-hover);
}

/* Projects Section */
.projects-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.projects-filter {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--orange-primary);
    color: var(--orange-primary);
}

.filter-btn.active {
    background: var(--orange-primary);
    color: var(--white);
    border-color: var(--orange-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--orange-primary);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-active {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.project-description {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-meta svg {
    flex-shrink: 0;
}

.project-rating {
    color: var(--text-dark);
    font-weight: 600;
}

/* Notifications Section */
.notifications-content {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.notifications-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
}

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

.notification-item:hover {
    background: var(--bg-light);
}

.notification-item.unread {
    background: rgba(249, 112, 21, 0.03);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
}

.notification-icon-info {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.notification-icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.notification-icon-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}

.notification-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0 0 0.25rem 0;
    line-height: 1.5;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange-primary);
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.badge-new {
    background: #ef4444;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.nav-link {
    cursor: pointer;
}

/* Specialist-Specific Styles */
.services-list,
.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-item,
.certification-item {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.service-item span,
.certification-item span {
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.no-data {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.services-edit-form textarea,
.certifications-edit-form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-in-progress {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.project-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.project-date,
.project-client {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-card-success .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-card-success:hover .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.stat-card-warning .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-card-warning:hover .stat-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

/* Business Video Styles */
.business-video-container {
    position: relative;
}

.video-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: var(--bg-light);
    text-align: center;
    transition: all 0.3s ease;
}

.video-upload-placeholder:hover {
    border-color: var(--orange-primary);
    background: rgba(249, 112, 21, 0.05);
}

.video-upload-placeholder svg {
    color: var(--orange-primary);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.video-upload-placeholder .no-data {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.video-preview-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.business-video-preview {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    background: #000;
    display: block;
}

.remove-video-btn {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.video-upload-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-upload-actions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.video-upload-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.video-upload-status {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
    background-color: var(--light-gray);
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.video-upload-status.info {
    background-color: #e0f2fe;
    color: #0288d1;
}

.video-upload-status.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.video-upload-status.error {
    background-color: #ffebee;
    color: #d32f2f;
}

/* Mobile Menu Toggle - Hidden on all devices */
.mobile-menu-toggle {
    display: none !important;
    visibility: hidden !important;
}

/* Ensure sidebar is visible on all devices */
.dashboard-sidebar {
    display: block !important;
    visibility: visible !important;
    position: sticky !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    height: fit-content !important;
    border-radius: 16px !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-toggle {
    display: none !important;
    visibility: hidden !important;
}

.dashboard-sidebar-overlay {
    display: none !important;
}

.sidebar-close-mobile {
    display: none !important;
}

@media (min-width: 768px) {
    .dashboard-container {
        grid-template-columns: 280px 1fr !important;
    }
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: none !important;
        visibility: hidden !important;
    }

    .dashboard-sidebar {
        position: static !important;
        display: block !important;
        visibility: visible !important;
        transform: none !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        border-radius: 16px !important;
        pointer-events: all !important;
        margin-bottom: 1rem;
    }

    .dashboard-container {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .dashboard-sidebar-overlay {
        display: none !important;
    }

    .sidebar-close-mobile {
        display: none !important;
    }

    .dashboard-sidebar-overlay {
        display: none !important;
    }

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

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .activity-timeline {
        padding-left: 1.5rem;
    }

    .settings-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .toggle-switch {
        margin-left: 0;
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   ============================================ */

/* Extra Small Devices (Phones, 320px - 480px) */
@media (max-width: 480px) {

    /* Header - Extra Small Devices */
    .site-header {
        padding: 0.5rem 0.75rem;
    }

    .header-container {
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0;
    }

    .site-logo {
        height: 38px;
        flex-shrink: 0;
    }

    .logo-image {
        height: 38px;
        max-width: 100px;
        object-fit: contain;
    }

    .header-specialist-link {
        font-size: 0.6875rem;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-right {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .header-dropdown {
        flex-shrink: 0;
    }

    .language-switcher-button {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
        min-width: auto;
    }

    .language-switcher-button .current-language {
        font-size: 0.75rem;
    }

    .language-switcher-button .dropdown-arrow {
        width: 10px;
        height: 10px;
    }

    .access-button {
        padding: 0.4rem;
        min-width: 36px;
        font-size: 0;
        justify-content: center;
    }

    .access-button span {
        display: none;
    }

    .access-button svg {
        width: 18px;
        height: 18px;
    }

    .access-button .dropdown-arrow {
        display: none;
    }

    .language-dropdown-menu,
    .access-dropdown-menu {
        right: 0;
        left: auto;
        min-width: 150px;
        max-width: calc(100vw - 1.5rem);
        font-size: 0.875rem;
    }

    .language-option,
    .access-option {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    /* Modals */
    .access-modal-content {
        width: 95%;
        max-width: 95%;
        margin: 1rem auto;
        max-height: 95vh;
        overflow-y: auto;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-subtitle {
        font-size: 0.875rem;
    }

    .form-tabs {
        gap: 0.5rem;
    }

    .form-tab {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    /* Dashboard */
    .dashboard-main {
        padding: 2rem 0;
    }

    .dashboard-container {
        padding: 0 0.75rem;
        gap: 0.75rem;
    }

    .dashboard-sidebar {
        width: 260px;
        max-width: 90vw;
        padding: 1rem;
    }

    .profile-image {
        width: 80px;
        height: 80px;
    }

    .edit-image-btn {
        width: 32px;
        height: 32px;
    }

    .edit-image-btn svg {
        width: 16px;
        height: 16px;
    }

    .image-upload-actions {
        bottom: -70px;
        min-width: 160px;
        padding: 0.75rem;
    }

    .image-upload-buttons {
        flex-direction: column;
        width: 100%;
    }

    .image-upload-buttons .btn {
        width: 100%;
    }

    .profile-name {
        font-size: 1rem;
    }

    .profile-email {
        font-size: 0.8125rem;
    }

    .nav-item {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }

    .nav-item svg {
        width: 16px;
        height: 16px;
    }

    .nav-item-logout {
        padding: 0.75rem 1rem;
        margin-top: 0.75rem;
    }

    .nav-item-logout svg {
        width: 18px;
        height: 18px;
    }

    .nav-item-logout span {
        font-size: 0.875rem;
    }

    .dashboard-content {
        padding: 0.75rem;
    }

    .section-header h1 {
        font-size: 1.25rem;
    }

    .welcome-text {
        font-size: 0.8125rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
    }

    .stat-icon svg {
        width: 18px;
        height: 18px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .overview-card {
        padding: 1rem;
    }

    .overview-icon {
        width: 36px;
        height: 36px;
    }

    .overview-icon svg {
        width: 18px;
        height: 18px;
    }

    .overview-content h3 {
        font-size: 1.25rem;
    }

    .overview-content p {
        font-size: 0.75rem;
    }

    .profile-card {
        padding: 1rem;
    }

    .card-header h3 {
        font-size: 1rem;
    }

    .info-item label {
        font-size: 0.75rem;
    }

    .info-value,
    .info-input {
        font-size: 0.875rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .edit-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
    }

    .icon-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Forms */
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* Activity Timeline */
    .activity-timeline {
        padding-left: 1rem;
    }

    .activity-item {
        padding: 0.875rem;
    }

    .activity-icon {
        width: 28px;
        height: 28px;
    }

    .activity-icon svg {
        width: 12px;
        height: 12px;
    }

    .activity-text {
        font-size: 0.8125rem;
    }

    .activity-time {
        font-size: 0.6875rem;
    }

    /* Messages */
    .messages-search input {
        font-size: 0.8125rem;
        padding: 0.625rem;
    }

    .conversation-item {
        padding: 0.875rem;
    }

    .conversation-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }

    .conversation-name {
        font-size: 0.875rem;
    }

    .conversation-preview {
        font-size: 0.75rem;
    }

    .chat-header {
        padding: 0.875rem;
    }

    .chat-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }

    .chat-header h3 {
        font-size: 0.9375rem;
    }

    .chat-status {
        font-size: 0.75rem;
    }

    .message {
        padding: 0.75rem;
        margin-bottom: 0.625rem;
    }

    .message p {
        font-size: 0.8125rem;
    }

    .message-time {
        font-size: 0.6875rem;
    }

    .chat-input-container input {
        font-size: 0.8125rem;
        padding: 0.625rem;
    }

    .send-btn {
        width: 36px;
        height: 36px;
    }

    .send-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Reviews */
    .rating-stars-large svg {
        width: 20px;
        height: 20px;
    }

    .rating-value-large {
        font-size: 1.75rem;
    }

    .rating-count {
        font-size: 0.8125rem;
    }

    .review-card {
        padding: 1rem;
    }

    .reviewer-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }

    .reviewer-info h4 {
        font-size: 0.875rem;
    }

    .review-rating .star {
        width: 12px;
        height: 12px;
    }

    .review-text {
        font-size: 0.8125rem;
    }

    .review-date {
        font-size: 0.75rem;
    }

    /* Notifications */
    .notification-item {
        padding: 0.875rem;
    }

    .notification-icon {
        width: 32px;
        height: 32px;
    }

    .notification-icon svg {
        width: 16px;
        height: 16px;
    }

    .notification-content h4 {
        font-size: 0.8125rem;
    }

    .notification-content p {
        font-size: 0.75rem;
    }

    .notification-time {
        font-size: 0.6875rem;
    }

    /* Settings */
    .settings-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
        padding: 0.875rem 0;
    }

    .settings-label {
        width: 100%;
    }

    .settings-label label {
        font-size: 0.875rem;
    }

    .settings-description {
        font-size: 0.75rem;
    }

    .danger-actions {
        flex-direction: column;
    }

    .danger-actions .btn {
        width: 100%;
    }

    /* Specialist Specific */
    .services-list,
    .certifications-list {
        gap: 0.75rem;
    }

    .service-item,
    .certification-item {
        padding: 0.875rem;
    }

    .project-card {
        padding: 1rem;
    }

    .video-upload-placeholder {
        padding: 2rem 1rem;
    }

    .video-upload-placeholder svg {
        width: 48px;
        height: 48px;
    }

    .business-data-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Footer styles are handled in main responsive section above */
}

/* Small Devices (Large Phones, 481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
    .site-header {
        padding: 0.625rem 1rem;
    }

    .header-container {
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .site-logo {
        height: 42px;
    }

    .logo-image {
        height: 42px;
        max-width: 110px;
    }

    .header-right {
        gap: 0.625rem;
    }

    .language-switcher-button,
    .access-button {
        padding: 0.45rem 0.625rem;
        font-size: 0.8125rem;
    }

    .access-button span {
        display: none;
    }

    .access-button {
        padding: 0.45rem;
        min-width: 38px;
        justify-content: center;
    }

    .language-dropdown-menu,
    .access-dropdown-menu {
        min-width: 170px;
    }

    .dashboard-container {
        padding: 0 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .overview-cards {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .business-data-grid {
        grid-template-columns: 1fr;
    }
}

/* Medium Devices (Tablets Portrait, 601px - 768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .site-header {
        padding: 0.75rem 1.25rem;
    }

    .header-container {
        gap: 1rem;
    }

    .site-logo {
        height: 48px;
    }

    .logo-image {
        height: 48px;
        max-width: 130px;
    }

    .header-right {
        gap: 0.875rem;
    }

    .language-switcher-button,
    .access-button {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }

    .access-button span {
        display: inline;
    }

    .language-dropdown-menu,
    .access-dropdown-menu {
        min-width: 180px;
    }

    .dashboard-container {
        padding: 0 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .overview-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .business-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .access-modal-content {
        width: 90%;
        max-width: 500px;
    }
}

/* Large Devices (Tablets Landscape, 769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .site-header {
        padding: 0.75rem 1.5rem;
    }

    .dashboard-container {
        padding: 0 1.5rem;
        grid-template-columns: 260px 1fr;
        gap: 1.5rem;
    }

    .dashboard-sidebar {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .business-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .access-modal-content {
        width: 85%;
        max-width: 550px;
    }
}

/* Extra Large Devices (Desktop, 1025px - 1400px) */
@media (min-width: 1025px) and (max-width: 1400px) {
    .dashboard-container {
        padding: 0 2rem;
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .overview-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .business-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* XXL Devices (Large Desktop, 1401px+) */
@media (min-width: 1401px) {
    .dashboard-container {
        max-width: 1400px;
        padding: 0 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .overview-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .business-data-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .dashboard-sidebar {
        height: 100vh;
        overflow-y: auto;
    }

    .access-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }

    .dashboard-content {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch target sizes */
    .btn,
    .nav-item,
    .language-switcher-button,
    .access-button,
    .edit-btn,
    .icon-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .stat-card:hover,
    .overview-card:hover,
    .profile-card:hover {
        transform: none;
    }

    /* Improve tap feedback */
    .btn:active,
    .nav-item:active,
    .language-switcher-button:active,
    .access-button:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .logo-image,
    .profile-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: auto;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Future) */
@media (prefers-color-scheme: dark) {
    /* Reserved for future dark mode implementation */
}

/* Print Styles */
@media print {

    .site-header,
    .dashboard-sidebar,
    .mobile-menu-toggle,
    .dashboard-sidebar-overlay,
    .sidebar-close-mobile,
    .btn,
    .form-actions {
        display: none !important;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        padding: 0;
    }

    .profile-card,
    .stat-card,
    .overview-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Checkout Popup Styles */
.checkout-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.checkout-popup-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.checkout-popup-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.checkout-popup-success .checkout-popup-icon {
    color: #10b981;
}

.checkout-popup-error .checkout-popup-icon {
    color: #ef4444;
}

.checkout-popup-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #1a202c;
}

.checkout-popup-content p {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.checkout-popup-close {
    background: var(--orange-primary);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-popup-close:hover {
    background: #e85f04;
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* Access Modal Responsive Fixes (final override) */
@media (max-width: 768px) {
    .access-modal .access-modal-content {
        width: calc(100% - 1rem) !important;
        max-width: 100% !important;
        max-height: 92vh !important;
        border-radius: 14px !important;
    }

    .access-modal .modal-body {
        padding: 1.25rem 1rem !important;
    }

    .access-modal .modal-close {
        top: 0.5rem !important;
        right: 0.5rem !important;
        width: 36px !important;
        height: 36px !important;
    }

    .access-modal .form-options {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.625rem !important;
    }

    .access-modal .form-group input[type="text"],
    .access-modal .form-group input[type="email"],
    .access-modal .form-group input[type="tel"],
    .access-modal .form-group input[type="password"],
    .access-modal .form-group input[type="number"],
    .access-modal .form-group textarea,
    .access-modal .form-group select {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .access-modal .modal-header {
        margin-bottom: 1.25rem !important;
    }

    .access-modal .form-tabs {
        margin-bottom: 1.25rem !important;
    }

    .access-modal .form-tab {
        padding: 0.625rem 0.75rem !important;
    }
}

#dsgmp-search-btn.dsgmp-btn-search {
    background-color: #F97015 !important;
}

.dsgmp-btn-view-on-map {
    background-color: #F97015 !important;
}

/* Specialist profile screenshot-aligned visual pass */
.specialist-profile-redesign .dashboard-container {
    max-width: 1240px;
    gap: 1rem;
}

.specialist-profile-redesign .sp-sidebar,
.specialist-profile-redesign .sp-content {
    background: #f7f7fb;
    border: 1px solid #e6e7f0;
    border-radius: 12px;
    box-shadow: none;
}

.specialist-profile-redesign .sp-sidebar {
    padding: 1rem 0.875rem 1.25rem;
}

.specialist-profile-redesign .sp-content {
    width: auto;
    padding: 1rem 1.35rem 1.5rem;
}

.specialist-profile-redesign .sp-sidebar-top {
    margin-bottom: 1rem;
    padding: 0 0.35rem;
}

.specialist-profile-redesign .sp-sidebar-profile {
    background: #ffffff;
    border: 1px solid #e9eaf2;
    border-radius: 10px;
    padding: 1rem 0.75rem;
    margin-bottom: 0.8rem;
}

.specialist-profile-redesign .sp-avatar {
    width: 90px;
    height: 90px;
    border: 3px solid #ff6f7d;
}

.specialist-profile-redesign .sp-avatar-badge {
    background: #27b987;
}

.specialist-profile-redesign .sp-verified-badge {
    background: #10b981;
    font-size: 0.8rem;
    border-radius: 7px;
}

.specialist-profile-redesign .sp-nav .nav-item {
    border-radius: 8px;
    margin-bottom: 0.3rem;
    padding: 0.7rem 0.8rem;
}

.specialist-profile-redesign .sp-nav .nav-item.active {
    background: #fff3eb;
    color: #f97015;
}

.specialist-profile-redesign .sp-nav .nav-item.active svg {
    color: #f97015;
}

.specialist-profile-redesign .sp-logout {
    background: #ef5a6f;
    border-radius: 8px;
    margin-top: 1rem;
    justify-content: center;
}

.specialist-profile-redesign .sp-logout:hover {
    background: #e1485f;
}

.specialist-profile-redesign .sp-content-header {
    border-bottom: 1px solid #e3e4ec;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.specialist-profile-redesign .sp-page-title h1 {
    font-size: 2rem;
    font-weight: 600;
}

.specialist-profile-redesign .sp-hero-avatar-bg {
    border: 3px solid #ff6f7d;
    background: #e3e7ef;
}

.specialist-profile-redesign .sp-detail-row {
    border-bottom: 1px solid #f0f1f6;
    padding: 0.2rem 0;
}

.specialist-profile-redesign .sp-detail-row:last-child {
    border-bottom: 0;
}

.specialist-profile-redesign .sp-detail-label {
    min-width: 110px;
    color: #4b5569;
}

.specialist-profile-redesign .sp-block--social .sp-block-title,
.specialist-profile-redesign .sp-block--photos .sp-block-title,
.specialist-profile-redesign .sp-block--bio .sp-block-title {
    font-size: 1.45rem;
    line-height: 1.25;
    font-weight: 600;
    color: #2e3442;
}

.specialist-profile-redesign .sp-social-item {
    background: #eceef4;
}

.specialist-profile-redesign .sp-legal-info {
    background: #ffffff;
    border: 1px solid #e7e8f0;
    border-radius: 12px;
    padding: 0.95rem;
}

.specialist-profile-redesign .sp-work-photo-slot {
    width: 84px;
    height: 74px;
    border-radius: 6px;
    background: #d9dde6;
}

@media (max-width: 767px) {
    .specialist-profile-redesign .sp-page-title h1 {
        font-size: 1.45rem;
    }

    .specialist-profile-redesign .sp-content {
        padding: 1rem;
    }
}
