/* Dancers Page Styles */

/* Breadcrumbs */
.breadcrumbs {
    background-color: #ffffff;
    padding: 1rem 2rem;
    border-top: 1px solid var(--primary-color);
}

.breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #999999;
}

.breadcrumb-item a {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-current {
    color: #333333;
    font-weight: 500;
}

/* Hero Section */
.page-hero {
    background-color: #ffffff;
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.page-hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(-100vh);
    animation: fallDown 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.title-word-1 {
    animation-delay: 0s;
}

.title-word-2 {
    animation-delay: 0.5s;
}

.title-accent {
    color: var(--primary-color);
}

@keyframes fallDown {
    0% {
        opacity: 0;
        transform: translateY(-100vh);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-subtitle {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: #666666;
    margin-bottom: 0;
}

/* Search Section */
.search-section {
    background-color: #fefefe;
    padding: 3rem 2rem;
    border-top: 1px solid var(--primary-color);
}

.search-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-heading {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #000000;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Search Form */
.search-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #faf9f7;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.search-field-button {
    grid-column: 1 / -1;
}

.search-label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333333;
}

.search-input,
.search-select {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.search-input::placeholder {
    color: #999999;
}

.search-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
}

/* Tom Select wrapper inherits search-select class - reset conflicting styles */
.ts-wrapper.search-select {
    appearance: auto;
    background-image: none;
    padding: 0;
    border: none;
    background-color: transparent;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    background-color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-top: 0.5rem;
}

.search-btn:hover {
    background-color: #e54000;
}

/* Dancers Listing Section */
.dancers-section {
    background-color: #faf9f7;
    padding: 3rem 2rem;
    min-height: 60vh;
}

.dancers-container {
    max-width: 1100px;
    margin: 0 auto;
}

.dancers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dancers-count {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    color: #666666;
    margin: 0;
}

.dancers-count strong {
    color: #000000;
}

.dancers-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dancers-sort label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    color: #666666;
}

.sort-select {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

/* Dancers Grid */
.dancers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.dancer-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dancer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.dancer-photo {
    aspect-ratio: 1;
    overflow: hidden;
}

.dancer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dancer-card:hover .dancer-photo img {
    transform: scale(1.05);
}

.dancer-info {
    padding: 1rem;
    text-align: center;
}

.dancer-name {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #000000;
    margin: 0 0 0.25rem 0;
}

.dancer-location {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.85rem;
    color: #666666;
    margin: 0;
}

.dancer-location i {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-right: 0.25rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    color: #333333;
    padding: 0.625rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn.disabled {
    color: #cccccc;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-num {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    color: #333333;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.pagination-num:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-num.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.pagination-ellipsis {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    color: #999999;
    padding: 0.625rem 0.5rem;
}

/* Create Profile CTA */
.create-profile-cta {
    background-color: var(--primary-color);
    padding: 5rem 2rem;
    text-align: center;
}

.create-profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.create-profile-text {
    font-family: 'Inter Tight', sans-serif;
    font-size: 2.25rem;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.5;
    margin: 0 0 3rem 0;
}

.create-profile-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.create-profile-btn {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    padding: 1rem 2rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.create-profile-btn-outline {
    color: #ffffff;
    background-color: transparent;
    border: 1px solid #ffffff;
}

.create-profile-btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

.create-profile-btn-solid {
    color: var(--primary-color);
    background-color: #ffffff;
    border: 1px solid #ffffff;
}

.create-profile-btn-solid:hover {
    background-color: transparent;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 600px) {
    .search-row {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 768px) {
    .page-hero {
        min-height: 70vh;
        padding: 3rem 1.5rem;
    }

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

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

    .search-section {
        padding: 2rem 1.5rem;
    }

    .search-form {
        padding: 1.5rem;
    }

    .dancers-section {
        padding: 2rem 1.5rem;
    }

    .dancers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .pagination {
        gap: 0.5rem;
    }

    .pagination-btn span {
        display: none;
    }

    .create-profile-cta {
        padding: 3rem 1.5rem;
    }

    .create-profile-text {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

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

/* ============================================
   Additional Dancer Profile Styles
   ============================================ */

/* Results Section */
.results-section {
    padding: 40px 20px;
    background: #faf9f7;
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-count {
    color: #666;
}

/* Dancer Grid Layout */
.dancer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.dancer-card-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #E63946, #ff6b6b);
}

.dancer-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dancer-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
}

.availability-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.availability-badge.available {
    background: #28a745;
    color: #fff;
}

.dancer-card-content {
    padding: 20px;
    flex: 1;
}

.dancer-tagline {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dancer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.dancer-meta-item {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dancer-styles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.style-tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.style-more {
    background: #E63946;
    color: #fff;
}

.dancer-view-btn {
    display: block;
    text-align: center;
    padding: 14px;
    background: #f8f9fa;
    color: #E63946;
    text-decoration: none;
    font-weight: 600;
    border-top: 1px solid #eee;
    transition: background 0.2s;
}

.dancer-view-btn:hover {
    background: #E63946;
    color: #fff;
}

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

.no-results i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
    display: block;
}

/* Profile Detail Page */
.profile-section {
    padding: 40px 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.profile-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    background: linear-gradient(135deg, #E63946, #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 700;
    color: #fff;
}

.profile-status {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.profile-status.available {
    background: #28a745;
    color: #fff;
}

.profile-status.unavailable {
    background: #6c757d;
    color: #fff;
}

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

.profile-name {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.profile-tagline {
    font-size: 18px;
    color: #666;
    margin-bottom: 16px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
}

.profile-actions {
    display: flex;
    gap: 12px;
}

/* Profile Body */
.profile-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.profile-bio {
    line-height: 1.7;
    color: #444;
}

.profile-styles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-styles .style-tag {
    padding: 6px 14px;
    font-size: 14px;
}

/* Video Embed */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Certifications */
.certification-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.certification-checkboxes label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.certification-checkboxes label i {
    width: 20px;
    color: var(--primary-color);
}

.certifications-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.certification-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 8px;
    color: #155724;
    font-weight: 500;
    font-size: 14px;
}

.certification-badge i {
    font-size: 16px;
}

/* Qualifications Grid */
.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.qualification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.qualification-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 2px;
}

.qualification-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

.qualification-item p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Experience List */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.experience-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

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

.experience-date {
    flex-shrink: 0;
    width: 120px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

.experience-content {
    flex: 1;
}

.experience-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

.experience-company {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
}

.experience-desc {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.service-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.service-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.service-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px 0;
}

.service-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.review-stars {
    margin-bottom: 12px;
}

.review-stars i {
    color: #ffc107;
    font-size: 14px;
}

.review-stars i.fa-regular {
    color: #ddd;
}

.review-text {
    font-size: 15px;
    font-style: italic;
    color: #444;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.review-author {
    font-size: 13px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.verified-badge {
    color: #28a745;
    margin-left: 4px;
}

/* Responsive for new sections */
@media (max-width: 768px) {
    .qualifications-grid {
        grid-template-columns: 1fr;
    }

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

    .experience-item {
        flex-direction: column;
        gap: 8px;
    }

    .experience-date {
        width: auto;
    }
}

/* Gallery */
.profile-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
}

/* Sidebar Cards */
.sidebar-card {
    padding: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.btn-contact {
    display: block;
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #E63946, #ff6b6b);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-contact:hover {
    transform: translateY(-2px);
}

.login-prompt {
    color: #666;
    font-size: 14px;
}

.login-prompt a {
    color: #E63946;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.social-link:hover {
    background: #f0f0f0;
    color: #E63946;
}

.quick-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.quick-info-list li:last-child {
    border-bottom: none;
}

.info-label {
    color: #888;
    font-size: 13px;
}

.info-value {
    font-weight: 600;
    font-size: 13px;
}

/* Premium Features */
.premium-icon {
    color: #ffc107;
}

.premium-locked {
    opacity: 0.6;
}

.premium-notice {
    color: #888;
    font-style: italic;
    font-size: 14px;
}

/* Profile Form Page */
.profile-form-section {
    min-height: calc(100vh - 80px);
    padding: 3rem 2rem;
    background-color: #faf9f7;
}

.profile-form-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.profile-form-card {
    background-color: #ffffff;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

.profile-form-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.profile-form-header h1 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 0.5rem 0;
}

.profile-form-header p {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Style Django-rendered form elements */
.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="url"],
.profile-form input[type="number"],
.profile-form input[type="tel"],
.profile-form textarea,
.profile-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.profile-form input[type="text"]:focus,
.profile-form input[type="email"]:focus,
.profile-form input[type="url"]:focus,
.profile-form input[type="number"]:focus,
.profile-form input[type="tel"]:focus,
.profile-form textarea:focus,
.profile-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.profile-form textarea {
    min-height: 120px;
    resize: vertical;
}

.profile-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Tom Select wrapper in profile forms - reset conflicting select styles */
.profile-form .ts-wrapper {
    width: 100%;
}

.profile-form .ts-wrapper.single .ts-control {
    appearance: auto;
    background-image: none;
    padding: 12px 40px 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-height: auto;
    background-color: #fff;
}

.profile-form .ts-wrapper.focus .ts-control {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.profile-form input[type="file"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.profile-form input[type="file"]:hover {
    border-color: var(--primary-color);
    background-color: #fff;
}

@media (max-width: 768px) {
    .profile-form-section {
        padding: 1.5rem 1rem;
    }

    .profile-form-card {
        padding: 1.5rem;
    }

    .profile-form-header h1 {
        font-size: 1.5rem;
    }
}

/* Forms */
.form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #E63946;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    transition: border-color 0.2s;
}

/* Tom Select wrapper inherits form-select class - reset conflicting styles */
.ts-wrapper.form-select {
    appearance: auto;
    background-image: none;
    padding: 0;
    border: none;
    background-color: transparent;
    width: 100%;
}

.form-file {
    width: 100%;
    padding: 12px 16px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.form-file:hover {
    border-color: #E63946;
    background-color: #fff;
}

.form-help {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-section-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Formset Styles */
.formset-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.formset-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.formset-item .form-row:last-child,
.formset-item .form-group:last-child {
    margin-bottom: 0;
}

.delete-checkbox {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.delete-checkbox label {
    color: #dc3545;
    font-size: 13px;
}

.delete-checkbox input[type="checkbox"] {
    accent-color: #dc3545;
}

/* Add More Button */
.btn-add-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #666;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-more:hover {
    background: #e8e8e8;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-add-more i {
    font-size: 12px;
}

@media (max-width: 768px) {
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}

.style-counter {
    font-weight: normal;
    font-size: 13px;
    color: #888;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.checkbox-grid input[type="checkbox"]:disabled + label,
.checkbox-grid li:has(input:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-grid label,
.checkbox-grid li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    color: #333;
}

/* Remove default list styling from Django CheckboxSelectMultiple */
.checkbox-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.checkbox-single label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    color: #333;
}

.checkbox-single input[type="checkbox"],
.checkbox-grid input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

/* Profile Form Container */
.profile-form {
    width: 100%;
    max-width: 100%;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary {
    background: linear-gradient(135deg, #E63946, #ff6b6b);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Premium Section Locked */
.premium-section-locked {
    position: relative;
}

.premium-notice-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-upgrade-small {
    background: linear-gradient(135deg, #ffc107, #ffca28);
    color: #333;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

/* My Profile Page */
.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.panel-actions {
    display: flex;
    gap: 12px;
}

.profile-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.preview-header {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.preview-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.preview-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E63946, #ff6b6b);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.preview-info h2 {
    font-size: 24px;
    margin-bottom: 4px;
}

.preview-tagline {
    color: #666;
    margin-bottom: 12px;
}

.preview-meta {
    display: flex;
    gap: 16px;
    color: #888;
    font-size: 14px;
    margin-bottom: 12px;
}

.preview-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge.available {
    background: #d4edda;
    color: #155724;
}

.status-badge.unavailable {
    background: #e2e3e5;
    color: #383d41;
}

.preview-section {
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.preview-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.preview-styles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preview-bio {
    color: #444;
    line-height: 1.6;
}

/* Gallery Preview */
.gallery-preview-section {
    margin-bottom: 30px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.gallery-header h3 {
    font-size: 18px;
}

.btn-small {
    background: #f0f0f0;
    color: #333;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.btn-small:hover {
    background: #e0e0e0;
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-preview-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-empty {
    color: #888;
    font-size: 14px;
}

.gallery-empty a {
    color: #E63946;
}

.premium-upgrade-hint {
    margin-top: 12px;
    color: #888;
    font-size: 13px;
}

.premium-upgrade-hint i {
    color: #ffc107;
}

/* Premium Features Status */
.premium-features-status {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
}

.premium-features-status h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.feature-status-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.feature-status-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.feature-status-list li:last-child {
    border-bottom: none;
}

.feature-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-status {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
}

.feature-status.active {
    background: #d4edda;
    color: #155724;
}

.feature-status.locked {
    background: #fff3cd;
    color: #856404;
}

.feature-status.empty {
    color: #999;
}

.btn-upgrade {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffc107, #ffca28);
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

/* Gallery Management */
.upload-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.upload-section h3 {
    margin-bottom: 16px;
}

.upload-form .form-row {
    margin-bottom: 16px;
}

.upload-limit-reached {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 30px;
}

.upload-limit-reached i {
    font-size: 24px;
    color: #856404;
    margin-bottom: 8px;
}

.upload-limit-reached p {
    color: #856404;
    margin-bottom: 8px;
}

.gallery-manage-section h3 {
    margin-bottom: 16px;
}

.gallery-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-manage-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-manage-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.gallery-item-caption {
    color: #fff;
    font-size: 13px;
    flex: 1;
}

.btn-delete {
    background: #dc3545;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background: #c82333;
}

.gallery-empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
}

.gallery-empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
    display: block;
}

.gallery-tips {
    background: #e8f4fd;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.gallery-tips h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #0c5460;
}

.gallery-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #0c5460;
}

.gallery-tips li {
    margin-bottom: 6px;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 14px;
}

.back-link:hover {
    color: #E63946;
}

/* Current Image Preview */
.current-image-preview {
    text-align: center;
    margin-bottom: 24px;
}

.current-image-preview img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
}

.current-image-preview p {
    color: #888;
    font-size: 13px;
}

/* Sidebar Avatar Image */
.sidebar-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* CTA Section */
.job-alerts-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.job-alerts-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.job-alerts-icon {
    font-size: 32px;
    color: #E63946;
}

.job-alerts-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.job-alerts-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.job-alerts-btn {
    background: linear-gradient(135deg, #E63946, #ff6b6b);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.job-alerts-btn:hover {
    transform: translateY(-2px);
}

/* Responsive for new styles */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-body {
        grid-template-columns: 1fr;
    }

    .profile-meta {
        justify-content: center;
    }

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

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

    .panel-header-row {
        flex-direction: column;
        gap: 16px;
    }

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

    .gallery-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .job-alerts-cta {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .job-alerts-content {
        flex-direction: column;
    }

    .premium-notice-box {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ===========================================
   Search Grid Layout
   =========================================== */

/* 2-column search grid layout */
.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
}

.search-btn-full {
    width: 100%;
    padding: 14px 24px;
    background-color: var(--primary-color, #ff5722);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.search-btn-full:hover {
    background-color: #e64a19;
}
