.dttp-profile {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    line-height: 1.7;
}

.dttp-profile__header {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.dttp-profile__photo {
    flex: 0 0 220px;
}

.dttp-profile__img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dttp-profile__intro {
    flex: 1;
    min-width: 200px;
}

.dttp-profile__name {
    font-size: 2rem;
    margin: 0 0 8px;
    color: #2c2c2c;
    font-weight: 700;
}

.dttp-profile__tagline {
    font-size: 1.1rem;
    color: #6a4c89;
    margin: 0 0 8px;
    font-weight: 500;
}

.dttp-profile__territory {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.dttp-icon {
    margin-right: 4px;
}

.dttp-profile__bio {
    margin-bottom: 32px;
    font-size: 1rem;
}

.dttp-profile__bio p {
    margin: 0 0 16px;
}

.dttp-profile__section {
    margin-bottom: 32px;
}

.dttp-profile__section h3 {
    font-size: 1.25rem;
    margin: 0 0 12px;
    color: #6a4c89;
    border-bottom: 2px solid #e8dff0;
    padding-bottom: 6px;
}

.dttp-profile__specialties {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dttp-profile__specialties li {
    background: #f3edf8;
    color: #6a4c89;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.dttp-profile__quals {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dttp-profile__quals li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dttp-profile__quals li:last-child {
    border-bottom: none;
}

.dttp-qual__issuer {
    color: #666;
}

.dttp-qual__year {
    color: #999;
    font-size: 0.9em;
}

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

.dttp-gallery__item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dttp-gallery__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* ----- Notices ----- */

.dttp-notice {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

.dttp-notice--ok {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

/* ----- Buttons ----- */

.dttp-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    color: #333;
    transition: background 0.2s;
    font-family: inherit;
}

.dttp-btn:hover {
    background: #f5f5f5;
}

.dttp-btn--primary {
    background: #6a4c89;
    color: #fff;
    border-color: #6a4c89;
}

.dttp-btn--primary:hover {
    background: #8b6aad;
}

.dttp-btn--edit {
    margin-top: 32px;
    background: #f3edf8;
    color: #6a4c89;
    border-color: #d8c8e8;
}

.dttp-btn--edit:hover {
    background: #e8dff0;
}

.dttp-btn--small {
    padding: 6px 16px;
    font-size: 0.85rem;
}

/* ----- Edit Form ----- */

.dttp-profile__edit {
    background: #fafafa;
    border: 1px solid #e8e0f0;
    border-radius: 12px;
    padding: 32px;
    margin-top: 24px;
}

.dttp-profile__edit h3 {
    margin: 0 0 20px;
    color: #6a4c89;
    font-size: 1.3rem;
}

.dttp-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.dttp-edit-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.dttp-edit-field > span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

.dttp-edit-field input[type="text"],
.dttp-edit-field input[type="number"],
.dttp-edit-field textarea {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    width: 100%;
    transition: border-color 0.2s;
}

.dttp-edit-field input:focus,
.dttp-edit-field textarea:focus {
    border-color: #6a4c89;
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 76, 137, 0.1);
}

.dttp-edit-full {
    grid-column: 1 / -1;
}

/* Photo / gallery upload zones */

.dttp-photo-preview {
    display: inline-block;
    position: relative;
    margin-bottom: 8px;
}

.dttp-photo-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.dttp-remove-img {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #c62828;
    color: #fff;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dttp-gallery-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.dttp-gallery-thumb {
    position: relative;
    display: inline-block;
}

.dttp-gallery-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

/* Qualification rows */

.dttp-qual-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 80px 32px;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.dttp-qual-row input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    box-sizing: border-box;
}

.dttp-remove-qual {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eee;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dttp-remove-qual:hover {
    background: #fce4ec;
    color: #c62828;
}

.dttp-edit-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

@media (max-width: 600px) {
    .dttp-profile__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dttp-profile__photo {
        flex: 0 0 auto;
    }

    .dttp-profile__name {
        font-size: 1.6rem;
    }

    .dttp-profile__gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .dttp-edit-grid {
        grid-template-columns: 1fr;
    }

    .dttp-qual-row {
        grid-template-columns: 1fr 1fr 70px 28px;
    }
}
