/* User Profile Styles */
/* WordPress Theme Override Selectors */
body.wordpress body .cid-user-profile,
.site-content .cid-user-profile,
.content-area .cid-user-profile,
#main .cid-user-profile,
#content .cid-user-profile,
body .cid-user-profile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    min-height: 100vh !important;
    padding: 2rem !important;
    font-family: 'VazirMatn', 'Vazirmatn', 'IRANSans', 'Tahoma', Arial, sans-serif !important;
    width: 100vw !important;
    margin: -32px calc(50% - 50vw) !important;
    position: relative !important;
    box-sizing: border-box !important;
    left: 0 !important;
    right: 0 !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column !important;
}

body .cid-profile-container {
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
}

/* Profile Header */
body .cid-profile-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 2rem !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body .cid-header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
}

body .cid-profile-welcome h1.cid-page-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    margin: 0 0 0.5rem 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-family: 'Vazirmatn', 'VazirMatn', 'IRANSans', 'Tahoma', Arial, sans-serif !important;
}

body .cid-profile-welcome .cid-subtitle {
    color: #64748b !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

body .cid-header-actions {
    display: flex !important;
    gap: 1rem !important;
    flex-shrink: 0 !important;
}

/* Profile Completeness Bar */
body .cid-profile-completeness {
    margin-top: 2rem !important;
    padding: 1.5rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body .cid-completeness-info {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
}

body .cid-completeness-label {
    font-weight: 600 !important;
    color: #2d3748 !important;
    font-size: 0.95rem !important;
}

body .cid-completeness-value {
    font-weight: 700 !important;
    color: #667eea !important;
    font-size: 1.1rem !important;
}

body .cid-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cid-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 6px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.cid-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cid-completeness-message {
    color: #4a5568;
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cid-completeness-message .cid-icon {
    color: #f6ad55;
    width: 16px;
    height: 16px;
}

/* Profile Content Layout */
body .cid-profile-content {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Section Headers */
body .cid-section-header {
    margin-bottom: 2rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1) !important;
}

body .cid-section-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    margin: 0 0 0.5rem 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

body .cid-section-title .cid-icon {
    color: #667eea;
    width: 24px;
    height: 24px;
}

.cid-section-description {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Form Styling */
body .cid-form {
    margin-top: 2rem !important;
}

body .cid-form-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

body .cid-form-group {
    margin-bottom: 1.5rem !important;
}

body .cid-form-group:last-child {
    margin-bottom: 0 !important;
}

body .cid-form-label {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    font-size: 0.95rem !important;
}

body .cid-form-label .cid-icon {
    width: 16px !important;
    height: 16px !important;
    color: #667eea !important;
}

body .cid-form-label .required {
    color: #e53e3e !important;
    font-weight: 700 !important;
}

body .cid-form-input,
body .cid-input,
body .cid-select,
body .cid-form-select,
body .cid-form-textarea {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    border: 2px solid rgba(102, 126, 234, 0.15) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem !important;
    color: #2d3748 !important;
    font-family: inherit !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

body .cid-form-input:focus,
body .cid-input:focus,
body .cid-select:focus,
body .cid-form-select:focus,
body .cid-form-textarea:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-1px) !important;
}

body .cid-form-input:invalid,
body .cid-input:invalid,
body .cid-select:invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.cid-form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Form Actions */
.cid-form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Checkbox Styling */
.cid-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cid-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #667eea;
    cursor: pointer;
}

.cid-checkbox-text {
    flex: 1;
}

/* Select Styling */
.cid-select,
.cid-form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: left 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-left: 2.5rem;
    appearance: none;
}

/* Cards for Settings */
.cid-settings-card,
.cid-summary-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cid-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

.cid-card-header .cid-icon {
    width: 20px;
    height: 20px;
    color: #667eea;
}

.cid-card-content {
    position: relative;
}

/* Info Items */
.cid-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.05);
}

.cid-info-item:last-child {
    border-bottom: none;
}

.cid-info-label {
    font-weight: 500;
    color: #4a5568;
}

.cid-info-value {
    font-weight: 600;
    color: #2d3748;
}

/* Profile Sidebar */
.cid-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cid-profile-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.cid-profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.cid-profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(102, 126, 234, 0.2);
}

.cid-profile-avatar .cid-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cid-profile-avatar .cid-avatar-edit:hover {
    transform: scale(1.1);
    background: #5a67d8;
}

.cid-profile-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.cid-profile-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
}

.cid-profile-completion {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.cid-completion-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a5568;
    margin: 0 0 1rem 0;
}

.cid-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.cid-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.cid-completion-text {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Buttons */
body .cid-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.875rem 1.75rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0.95rem !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    font-family: inherit !important;
    position: relative !important;
    overflow: hidden !important;
}

body .cid-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s !important;
}

body .cid-btn:hover::before {
    left: 100% !important;
}

body .cid-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

body .cid-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    color: white !important;
    background: linear-gradient(135deg, #5a67d8, #6b46c1) !important;
}

body .cid-btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

body .cid-btn-secondary {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #4a5568 !important;
    border: 2px solid rgba(102, 126, 234, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

body .cid-btn-secondary:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-2px) !important;
    color: #2d3748 !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

body .cid-btn-secondary:active {
    transform: translateY(0) !important;
}

body .cid-btn-block {
    width: 100%;
}

.cid-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.cid-btn .cid-icon {
    transition: transform 0.3s ease;
}

.cid-btn:hover .cid-icon {
    transform: scale(1.1);
}

/* Status Messages */
body .cid-message {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    margin-bottom: 2rem !important;
    border: 1px solid !important;
}

body .cid-message-success {
    background: #e6f9ec !important;
    color: #217a3c !important;
    border: 1px solid #b6e2c6 !important;
}

body .cid-message-error {
    background: rgba(245, 101, 101, 0.1) !important;
    color: #c53030 !important;
    border-color: rgba(245, 101, 101, 0.3) !important;
}

body .cid-message-warning {
    background: rgba(236, 201, 75, 0.1) !important;
    color: #b7791f !important;
    border-color: rgba(236, 201, 75, 0.3) !important;
}

body .cid-message .cid-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Tab Navigation */
body .cid-profile-tabs {
    display: flex !important;
    gap: 0.5rem !important;
    margin-bottom: 2rem !important;
    padding: 0.5rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    overflow-x: auto !important;
}

body .cid-tab-btn {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1.25rem !important;
    border: none !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

body .cid-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-1px) !important;
}

body .cid-tab-btn.active {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2d3748 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

body .cid-tab-btn .cid-icon {
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.3s ease !important;
}

body .cid-tab-btn.active .cid-icon {
    transform: scale(1.1) !important;
}

/* Tab Content */
body .cid-tab-content {
    position: relative;
}

.cid-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.cid-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step/Status Indicators */
.cid-next-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-bottom: 1.5rem;
}

.cid-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.cid-icon-success {
    background: rgba(72, 187, 120, 0.15);
    color: #38a169;
}

.cid-icon-warning {
    background: rgba(236, 201, 75, 0.15);
    color: #d69e2e;
}

.cid-icon-info {
    background: rgba(66, 153, 225, 0.15);
    color: #3182ce;
}

.cid-icon-error {
    background: rgba(245, 101, 101, 0.15);
    color: #e53e3e;
}

.cid-step-content {
    flex: 1;
}

.cid-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.cid-step-description {
    color: #64748b;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

/* Icon Styling */
.cid-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

/* Helper Text */
.cid-input-help,
.cid-form-help {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Notification Settings */
.cid-notification-settings {
    margin-top: 1rem;
}

/* Application Info */
.cid-application-summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Required Field Indicator */
.required {
    color: #e53e3e;
    margin-right: 0.25rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cid-user-profile {
        padding: 1.5rem !important;
    }
    
    .cid-profile-header {
        padding: 1.5rem;
    }
    
    .cid-profile-content {
        padding: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .cid-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cid-header-actions {
        justify-content: stretch;
        flex-wrap: wrap;
    }
    
    .cid-profile-tabs {
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
    }
    
    .cid-profile-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .cid-profile-tabs::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .cid-profile-tabs::-webkit-scrollbar-thumb {
        background: rgba(102, 126, 234, 0.3);
        border-radius: 2px;
    }
}

@media (max-width: 768px) {
    .cid-completeness-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cid-tab-btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .cid-step-icon {
        width: 40px;
        height: 40px;
    }
    
    .cid-step-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .cid-form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .cid-profile-welcome h1.cid-page-title {
        font-size: 1.25rem !important;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .cid-header-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cid-btn {
        width: 100%;
        padding: 1rem;
        justify-content: center;
    }
    
    .cid-tab-btn {
        padding: 0.75rem;
        font-size: 0.8rem;
        min-width: 90px;
    }
    
    .cid-section-title {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .cid-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .cid-progress-bar {
        height: 8px;
    }
    
    .cid-settings-card,
    .cid-summary-card {
        padding: 1rem;
        border-radius: 12px;
    }
}

/* Additional Enhanced Responsive Design */

/* Extra Large Screens */
@media (min-width: 1400px) {
    .cid-user-profile {
        padding: 3rem !important;
    }
    
    .cid-profile-header,
    .cid-profile-content {
        padding: 2.5rem;
    }
    
    .cid-profile-welcome h1.cid-page-title {
        font-size: 2rem !important;
    }
    
    .cid-section-title {
        font-size: 1.75rem;
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) and (orientation: portrait) {
    .cid-profile-tabs {
        padding: 0.25rem;
        gap: 0.25rem;
    }
    
    .cid-tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .cid-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cid-header-actions {
        order: 2;
        margin-top: 1rem;
    }
}

/* Small Tablets and Large Phones */
@media (max-width: 600px) {
    .cid-user-profile {
        padding: 0.75rem !important;
        margin: -16px calc(50% - 50vw) !important;
    }
    
    .cid-profile-header,
    .cid-profile-content {
        border-radius: 16px;
        padding: 1rem;
    }
    
    .cid-profile-completeness {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .cid-progress-bar {
        height: 6px;
    }
    
    .cid-completeness-value {
        font-size: 1rem;
    }
    
    .cid-profile-tabs {
        padding: 0.25rem;
        gap: 0.25rem;
        border-radius: 12px;
    }
    
    .cid-tab-btn {
        padding: 0.5rem;
        font-size: 0.75rem;
        min-width: 80px;
        border-radius: 8px;
    }
    
    .cid-tab-btn .cid-icon {
        width: 14px;
        height: 14px;
    }
    
    .cid-form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .cid-form-input,
    .cid-input,
    .cid-select,
    .cid-form-select,
    .cid-form-textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .cid-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .cid-settings-card,
    .cid-summary-card {
        padding: 0.875rem;
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    
    .cid-card-header {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .cid-next-step {
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .cid-step-icon {
        width: 36px;
        height: 36px;
    }
    
    .cid-step-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .cid-step-title {
        font-size: 1rem;
    }
    
    .cid-step-description {
        font-size: 0.85rem;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .cid-user-profile {
        padding: 0.5rem !important;
        margin: -12px calc(50% - 50vw) !important;
    }
    
    .cid-profile-header,
    .cid-profile-content {
        padding: 0.875rem;
        border-radius: 12px;
    }
    
    .cid-profile-welcome h1.cid-page-title {
        font-size: 1.125rem !important;
        line-height: 1.3;
    }
    
    .cid-subtitle {
        font-size: 0.85rem !important;
    }
    
    .cid-section-title {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    .cid-tab-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.7rem;
        min-width: 70px;
    }
    
    .cid-form-input,
    .cid-input,
    .cid-select,
    .cid-form-select,
    .cid-form-textarea {
        padding: 0.625rem;
        font-size: 0.85rem;
    }
    
    .cid-btn {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .cid-settings-card,
    .cid-summary-card {
        padding: 0.75rem;
        margin-bottom: 0.875rem;
    }
    
    .cid-card-header {
        font-size: 0.95rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.625rem;
    }
    
    .cid-card-header .cid-icon {
        width: 18px;
        height: 18px;
    }
}

/* Landscape Orientation Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .cid-user-profile {
        padding: 1rem !important;
    }
    
    .cid-profile-header {
        padding: 1.25rem;
    }
    
    .cid-header-content {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .cid-profile-welcome h1.cid-page-title {
        font-size: 1.375rem !important;
    }
    
    .cid-profile-tabs {
        margin-bottom: 1.5rem;
    }
    
    .cid-form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Print Styles */
@media print {
    .cid-user-profile {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        min-height: auto !important;
    }
    
    .cid-profile-header,
    .cid-profile-content,
    .cid-settings-card,
    .cid-summary-card {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    .cid-profile-tabs,
    .cid-header-actions,
    .cid-btn {
        display: none !important;
    }
    
    .cid-tab-pane {
        display: block !important;
    }
    
    .cid-progress-bar {
        border: 1px solid #ddd;
    }
    
    .cid-progress-fill {
        background: #333 !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .cid-form-input,
    .cid-input,
    .cid-select,
    .cid-form-select,
    .cid-form-textarea {
        border-width: 2px;
        border-color: #000;
    }
    
    .cid-btn-primary {
        background: #000 !important;
        color: #fff !important;
        border: 2px solid #000;
    }
    
    .cid-btn-secondary {
        background: #fff !important;
        color: #000 !important;
        border: 2px solid #000;
    }
    
    .cid-progress-fill {
        background: #000 !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .cid-btn,
    .cid-tab-btn,
    .cid-form-input,
    .cid-input,
    .cid-select,
    .cid-progress-fill,
    .cid-step-icon,
    .cid-icon {
        transition: none !important;
        animation: none !important;
    }
    
    .cid-btn::before {
        display: none !important;
    }
    
    .cid-progress-fill::after {
        animation: none !important;
    }
    
    .cid-tab-pane {
        animation: none !important;
    }
}

/* Focus Visible Support for Better Accessibility */
.cid-btn:focus-visible,
.cid-tab-btn:focus-visible,
.cid-form-input:focus-visible,
.cid-input:focus-visible,
.cid-select:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Dark Mode Support (if browser supports) */
@media (prefers-color-scheme: dark) {
    .cid-user-profile {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
    
    .cid-profile-header,
    .cid-profile-content,
    .cid-settings-card,
    .cid-summary-card {
        background: rgba(45, 55, 72, 0.95);
        color: #e2e8f0;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .cid-section-title,
    .cid-profile-welcome h1.cid-page-title,
    .cid-step-title,
    .cid-card-header {
        color: #e2e8f0;
    }
    
    .cid-form-input,
    .cid-input,
    .cid-select,
    .cid-form-select,
    .cid-form-textarea {
        background: rgba(45, 55, 72, 0.8);
        border-color: rgba(255, 255, 255, 0.2);
        color: #e2e8f0;
    }
    
    .cid-form-label {
        color: #cbd5e0;
    }
    
    .cid-btn-secondary {
        background: rgba(45, 55, 72, 0.9);
        color: #e2e8f0;
        border-color: rgba(255, 255, 255, 0.2);
    }
}

body .cid-profile-tabs,
body .cid-tab-btn {
    font-family: 'Vazirmatn', 'VazirMatn', 'IRANSans', 'Tahoma', Arial, sans-serif !important;
}