/* Public Artist Directory - Vanilla CSS */
/* Refactored Utility & Layout Classes from Tailwind transition */

:root {
    --husay: #e87147;
    --husay-dark: #d4603a;
    --husay-light: #fdf0ec;
    --husay-lighter: #fef7f4;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

/* Layout Utilities */
.max-w-7xl {
    max-width: 80rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.hidden {
    display: none !important;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pub-dir-container {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--slate-50);
    min-height: 100vh;
    padding-bottom: 3rem;
    color: var(--slate-900);
    overflow-x: hidden;
}

.dir-view-container {
    max-width: 90rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1.5rem;
}

@media (min-width: 1024px) {
    .dir-view-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.font-display {
    font-family: 'Fraunces', serif;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.pub-header {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

@media (max-width: 768px) {
    .pub-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .pub-header-btn {
        align-self: flex-start;
    }
}

.pub-header-btn {
    flex-shrink: 0;
    align-self: center;
}

.pub-title {
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0;
}

.pub-subtitle {
    font-size: 1rem;
    color: var(--slate-500);
    margin-top: 0.5rem;
}

/* Buttons */
.btn-primary {
    background-color: #e87147;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(55, 65, 81, 0.2);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #d4603a !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(31, 41, 55, 0.3);
    outline: none;
    text-decoration: none;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background-color: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--slate-100);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.stat-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-top: 0.5rem;
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--slate-500);
    margin-top: 0.25rem;
}

/* Filter Bar */
.filter-bar {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--slate-100);
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.filter-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.search-group {
    display: flex;
    flex: 1;
    gap: 10px;
}

.pub-search-input-alt {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem !important;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.pub-search-input-alt:focus {
    border-color: var(--husay);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(232, 113, 71, 0.1);
}

.btn-search-main {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--husay), var(--husay-dark));
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search-main:hover {
    opacity: 0.9;
    transform: translateX(1px);
}

.filter-select-alt {
    padding: 0.75rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    background-color: white;
    color: var(--slate-700);
    font-size: 0.875rem;
    font-weight: 500;
    height: auto;
    outline: none;
    width: 240px;
    /* Predictable width on desktop */
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    appearance: none;
}

@media (max-width: 768px) {
    .filter-select-alt {
        width: 100%;
    }
}

.filter-select-alt:focus {
    border-color: var(--husay);
    box-shadow: 0 0 0 3px rgba(232, 113, 71, 0.1);
}

.search-container {
    position: relative;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
}

.pub-search-input {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--slate-200);
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.pub-search-input:focus {
    border-color: var(--husay);
    box-shadow: 0 0 0 1px var(--husay);
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .filter-controls {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .filter-controls {
        grid-template-columns: repeat(4, 1fr);
    }
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--slate-200);
    font-size: 0.875rem;
    background-color: white;
    color: var(--slate-600);
    outline: none;
}

.btn-clear {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: var(--slate-50);
    color: var(--slate-600);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-clear:hover {
    background-color: var(--slate-100);
}

/* Artist Grid */
.artist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .artist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .artist-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.artist-card {
    background-color: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--slate-100);
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.artist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Artist Card V2 - Vertical & Premium */
.artist-card-v2 {
    background-color: white;
    border-radius: 1.5rem;
    border: 1px solid var(--slate-100);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.artist-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--husay-light);
}

.card-cover {
    height: 120px;
    width: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.artist-card-v2:hover .cover-img {
    transform: scale(1.05);
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, #fdf0ec 0%, #fef7f4 100%);
    opacity: 0.8;
}

.card-body-v2 {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    flex: 1;
}

.avatar-wrapper-v2 {
    margin-top: -45px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.artist-avatar-v2 {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.artist-avatar-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.initials-v2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--husay);
    font-family: 'Fraunces', serif;
}

.card-content-v2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.name-row-v2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 4px;
    width: 100%;
}

.status-dot-v2 {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
}

.artist-name-v2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-row-v2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    color: var(--slate-400);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.type-tags-v2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.type-pill-v2 {
    background-color: var(--husay);
    color: white;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
}

.skill-tags-v2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 1rem;
}

.skill-pill-v2 {
    background-color: var(--husay-light);
    color: var(--husay);
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}

.website-row-v2 {
    margin-bottom: 0.75rem;
    width: 100%;
}

.artist-website-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--husay);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 700;
    transition: all 0.2s;
}

.artist-website-link:hover {
    color: var(--husay-dark);
    transform: translateX(2px);
}

.social-row-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
    padding: 10px 0;
    border-radius: 12px;
}

.action-row-v2 {
    width: 100%;
    margin-top: auto;
}

.btn-see-bio {
    width: 100%;
    background-color: #f9fafb;
    color: #4b5563;
    border: 1.5px solid #d1d5db;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-see-bio:hover,
.btn-see-bio:focus,
.btn-see-bio:active {
    background-color: #374151 !important;
    color: white !important;
    border-color: #374151 !important;
    outline: none;
    text-decoration: none;
}

/* Directory subhead */
.dir-subhead {
    font-size: 1.01rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-top: 0;
    text-align: justify;
    max-width: 900px;
}

.dir-subhead a {
    color: var(--slate-700);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
    cursor: pointer;
}

.dir-subhead a:hover {
    color: var(--slate-900);
}

.artist-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.artist-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--slate-100);
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 1.25rem;
    overflow: hidden;
    background-color: var(--husay-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
    transition: color 0.2s;
    margin: 0;
}

.artist-card:hover .artist-name {
    color: var(--husay);
}

.artist-profession {
    font-size: 0.75rem;
    color: var(--slate-400);
    font-weight: 500;
}

.artist-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 2rem;
}

/* Badge System */
.badge {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.badge-inhouse {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-vetted {
    background-color: #dcfce7;
    color: #166534;
}

.badge-endorsed {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-community {
    background-color: #f1f5f9;
    color: #475569;
}

.skill-tag {
    font-size: 0.625rem;
    background-color: var(--slate-50);
    color: var(--slate-500);
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.artist-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--slate-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.6875rem;
    font-weight: 700;
}

.artist-loc {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--slate-400);
    max-width: 120px;
}

.artist-avail {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--husay);
}

.card-portfolio-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--slate-600);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    background-color: var(--slate-50);
    border-radius: 0.375rem;
    border: 1px solid var(--slate-100);
    transition: all 0.2s;
}

.card-portfolio-link:hover {
    background-color: var(--husay-light);
    color: var(--husay);
    border-color: var(--husay-light);
}

.artist-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.artist-social-icon svg {
    width: 14px;
    height: 14px;
}

.artist-social-icon:hover {
    color: var(--brand, var(--husay));
    border-color: var(--brand, var(--husay));
    background: #fff;
}

.pulse-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: var(--husay);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Registration Page — Two-Column Full-Page Layout */
.reg-page-layout {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 56px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .reg-page-layout {
        padding: 4rem 2rem;
        gap: 4rem;
    }
}

.reg-form-col {
    width: 100%;
}

.reg-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--husay);
    font-size: 0.875rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
    transition: opacity 0.2s;
}

.reg-back-link:hover {
    opacity: 0.75;
    background: none;
    color: #e87147;
}

.reg-page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.reg-page-subtitle {
    font-size: 1rem;
    color: var(--slate-500);
    margin-bottom: 2.5rem;
}

.reg-flat-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    padding: 48px;
    border-radius: 24px;
}

@media (max-width: 768px) {
    .reg-flat-form {
        padding: 1.25rem 1rem;
    }
}

/* Sidebar */
.reg-sidebar {
    background-color: #fff8f5;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid var(--husay-light);
    position: sticky;
    top: 2rem;
}

.reg-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 1.5rem;
}

.reg-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.reg-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    font-size: 0.9rem;
    color: var(--slate-700);
    line-height: 1.5;
}

.reg-sidebar-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--husay);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}



.reg-section {
    margin-bottom: 2.5rem;
}

.reg-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.reg-section-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--husay-light);
    color: var(--husay);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.reg-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0;
}

/* Photo Upload */
.photo-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background-color: rgba(248, 250, 252, 0.5);
    border-radius: 1rem;
    border: 1px solid var(--slate-100);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .photo-upload-box {
        flex-direction: row;
    }
}

.photo-preview-box {
    width: 7rem;
    height: 7rem;
    border-radius: 1.5rem;
    background-color: white;
    border: 2px dashed var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-upload {
    background-color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Input Styles */
.reg-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.loc-triple-grid {
    /* Relies on reg-grid base */
}

@media (max-width: 767px) {
    .loc-triple-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 768px) {
    .reg-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.reg-double-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .reg-double-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pass-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pass-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-400);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.pass-toggle:hover {
    color: var(--husay);
    background: none;
}

.pass-toggle:focus {
    background: var(--husay);
}

.form-group.full-width {
    grid-column: span 2;
}

@media (max-width: 767px) {
    .form-group.full-width {
        grid-column: span 1;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-weight: 600;
    color: var(--slate-600);
    font-size: 0.8125rem;
    letter-spacing: 0;
    margin-left: 0;
    margin-bottom: 0.125rem;
    display: block;
}

.form-input {
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--slate-200);
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--husay);
}

/* Toggle Switch */
.toggle-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background-color: var(--slate-100);
    border-radius: 0.75rem;
    border: 1px solid var(--slate-200);
    width: fit-content;
    margin-bottom: 1.5rem;
}

.toggle-btn {
    padding: 0.375rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    color: var(--slate-400);
}

.toggle-btn.active {
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    color: var(--husay);
}

.toggle-btn:hover {
    background: #e87147;
    color: white;
}

/* Type Grid */
.type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .type-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.type-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background-color: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--slate-600);
    transition: all 0.2s;
}

.type-label:hover {
    border-color: var(--husay);
    background-color: #fff5f2;
}

.type-label.active {
    background-color: var(--husay);
    border-color: var(--husay);
    color: white;
}

.type-add-box {
    display: flex;
    align-items: center;
}

.type-add-input {
    border: 1px dashed var(--slate-200);
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--slate-600);
    outline: none;
    background: transparent;
    transition: all 0.2s;
    width: 100%;
}

.type-add-input:focus {
    border-color: var(--husay);
    background: white;
}

.type-label:has(input:checked) {
    background-color: rgba(232, 113, 71, 0.08);
    border-color: var(--husay);
    color: var(--husay);
}

/* Chip Input */
.chip-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: var(--slate-50);
    border-radius: 0.75rem;
    border: 1px solid var(--slate-100);
    min-height: 3rem;
    align-items: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: rgba(232, 113, 71, 0.1);
    color: var(--husay);
    border-radius: 0.5rem;
    padding: 0.1875rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
}

.tag-input-field {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.875rem;
    flex: 1;
    min-width: 120px;
}

/* Social Row */
.social-input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--slate-50);
    border-radius: 0.75rem;
    border: 1px solid var(--slate-100);
}

.social-icon {
    width: 1rem;
    height: 1rem;
    color: var(--slate-400);
}

.social-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.75rem;
    flex: 1;
}

/* Submit */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--husay);
    color: white;
    font-weight: 700;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

@media (min-width: 768px) {
    .btn-submit {
        width: auto;
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.btn-submit:hover {
    background-color: var(--husay-dark);
    transform: translateY(-1px);
}

/* Modals */
.modal-o {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.modal-o.active {
    display: flex;
}

.modal-c {
    background-color: white;
    border-radius: 1.5rem;
    max-width: 38rem;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-o.active>.modal-c {
    transform: scale(1);
}

/* Inner scroll container — keeps scrollbar inside the border-radius clip */
.modal-scroll-body {
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for bio modal */
.modal-scroll-body::-webkit-scrollbar {
    width: 5px;
}

.modal-scroll-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-scroll-body::-webkit-scrollbar-thumb {
    background-color: var(--slate-200);
    border-radius: 99px;
}

.modal-scroll-body::-webkit-scrollbar-thumb:hover {
    background-color: var(--slate-300);
}

.modal-scroll-body {
    scrollbar-width: thin;
    scrollbar-color: var(--slate-200) transparent;
}

/* Ensure rounded corners for the cover image */
.modal-c::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5rem;
    background: transparent;
    z-index: 10;
    pointer-events: none;
    border-radius: 1.5rem 1.5rem 0 0;
}

.contact-panel {
    background-color: white;
    border-radius: 1.5rem;
    max-width: 38rem;
    width: 100%;
    padding: 2.5rem;
    transform: scale(0.95);
    transition: transform 0.2s;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Additional UI Elements from Inline cleanup */
.reg-error-msg {
    padding: 1rem 1.5rem;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
    border-radius: 1rem;
    margin-bottom: 2rem;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.empty-state-container {
    text-align: center;
    padding: 5rem 0;
    color: var(--slate-400);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    opacity: 0.2;
    display: block;
}

.bio-modal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.bio-modal-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.bio-modal-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 767px) {
    .bio-modal-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Actions UI */
.modal-action-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-contact-full {
    flex: 1;
    background-color: var(--husay);
    color: white;
    padding: 10px;
    border-radius: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-contact-full:hover {
    background: var(--husay-dark);
}

.btn-save-outline {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--slate-200);
    background: transparent;
    color: var(--slate-600);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.specialization-tabs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tab-pill {
    border-radius: 2rem;
    border: 1.5px solid var(--slate-100);
    background-color: white;
    color: var(--slate-500);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-pill:hover {
    border-color: var(--husay-light);
    color: white;
    background: var(--husay);
}

.tab-pill.active {
    background-color: var(--husay);
    color: white;
    border-color: var(--husay);
}

.specialized-link-card {
    text-decoration: none;
    color: var(--slate-900);
    background-color: white;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1.5px solid var(--slate-100);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.specialized-link-card:hover {
    border-color: var(--husay);
    color: var(--husay);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-save-outline:hover {
    background-color: var(--slate-50);
    border-color: var(--slate-300);
}

.modal-section-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.modal-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.modal-skill-chip {
    padding: 0.5rem 1rem;
    background-color: var(--husay-lighter);
    color: var(--husay);
    font-size: 12px;
    font-weight: 700;
    border-radius: 0.75rem;
    border: 1px solid var(--husay-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.portfolio-card {
    aspect-ratio: 4/3;
    background-color: var(--slate-50);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-200);
    transition: all 0.2s;
}

.portfolio-card:hover {
    transform: scale(1.02);
    border-color: var(--husay-light);
    color: var(--husay-light);
}

.bio-text {
    color: var(--slate-600);
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 2.5rem;
}

/* Modal Improvements */
.modal-cover-wrapper {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0 0;
}

.modal-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--husay-light) 0%, var(--husay-lighter) 100%);
    opacity: 0.8;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-600);
    transition: all 0.2s;
    z-index: 10;
}

.modal-share-btn {
    position: absolute;
    top: 1rem;
    right: 3.8rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #4b5563;
}

.modal-share-btn:hover {
    background-color: white;
    color: var(--husay);
    transform: scale(1.05);
}

.modal-share-btn:focus {
    background-color: white;
    color: var(--husay);
    transform: scale(1.05);
}

.modal-close-btn:hover {
    background-color: white;
    color: var(--husay);
    transform: rotate(90deg);
}

.modal-close-btn i,
.modal-close-btn svg,
.modal-share-btn i,
.modal-share-btn svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    stroke-width: 2px;
}

.bio-modal-header-v2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: -70px;
    margin-bottom: rem;
    position: relative;
    z-index: 10;
    gap: 1.25rem;
    padding-left: 0.5rem;
}

@media (min-width: 640px) {
    .bio-modal-header-v2 {
        flex-direction: column;
        align-items: center;
    }
}

.modal-avatar-v2 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-avatar-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.1rem;
}

.modal-initials-v2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--husay);
    font-family: 'Fraunces', serif;
}

.modal-title-row {
    flex: 1;
    padding-bottom: 0.75rem;
    min-width: 0;
    text-align: center;
}

.modal-name-v2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.modal-meta-v2 {
    color: var(--slate-500);
    font-weight: 500;
    margin: 0.25rem 0 0;
    font-size: 14px;
}

/* ── Social Icon Inputs ─────────────────────────────────── */
.soc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.soc-icon {
    position: absolute;
    left: 0.75rem;
    display: flex;
    align-items: center;
    color: #94a3b8;
    pointer-events: none;
    flex-shrink: 0;
}

.soc-input-wrap .form-input {
    padding-left: 2.5rem !important;
}

/* ── 3-column grid for social inputs ───────────────────── */
.reg-triple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .reg-triple-grid {
        grid-template-columns: 1fr;
    }
}