

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
}

.profile-page {
    max-width: 1160px;
    margin: 0 auto;
    padding: 34px 20px 72px;
}

.profile-shell {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 24px;
}

.profile-card,
.profile-form-card,
.profile-note-card,
.flash-banner {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.profile-card,
.profile-form-card,
.profile-note-card {
    padding: 28px;
}

.profile-eyebrow {
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0071e3;
    margin-bottom: 12px;
}

.profile-avatar-wrap {
    display: flex;
    justify-content: center;
    margin: 14px 0 18px;
}

.profile-avatar,
.profile-avatar-fallback {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    background: #ffffff;
}

.profile-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #111111 0%, #2c2c2e 100%);
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
}

.profile-card h1,
.profile-form-card h2,
.profile-note-card h3 {
    margin: 0;
    letter-spacing: -0.03em;
}

.profile-card h1 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 8px;
}

.profile-subtext,
.profile-note-card p,
.profile-field-value {
    color: #6e6e73;
    line-height: 1.75;
}

.profile-subtext {
    text-align: center;
    margin: 0 0 22px;
}

.profile-data-grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.profile-data-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: #fbfbfd;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.profile-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6e6e73;
}

.profile-field-value {
    font-size: 15px;
    word-break: break-word;
}

.flash-banner {
    margin-bottom: 18px;
    padding: 14px 16px;
    font-weight: 600;
    line-height: 1.6;
}

.flash-success {
    background: #e8f7ec;
    border-color: #b7e4c7;
    color: #1f7a37;
}

.flash-error {
    background: #fdeaea;
    border-color: #f2b2b2;
    color: #a62222;
}

.profile-form-card h2 {
    font-size: 34px;
    margin-bottom: 10px;
}

.profile-form-card p {
    margin: 0 0 22px;
    color: #6e6e73;
    line-height: 1.8;
}

.profile-form {
    display: grid;
    gap: 16px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-form-group.full-width {
    grid-column: 1 / -1;
}

.profile-form label {
    font-size: 14px;
    font-weight: 700;
}

.profile-form input,
.profile-form textarea {
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    font-size: 15px;
    background: #ffffff;
    color: #111111;
    box-sizing: border-box;
}

.profile-form textarea {
    min-height: 120px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
}

.profile-form input:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.profile-form input[readonly] {
    background: #f8fafc;
    color: #6e6e73;
    cursor: not-allowed;
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background 0.2s ease;
}

.profile-btn:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
}

.profile-btn.secondary {
    background: #f3f4f6;
    color: #111111;
    box-shadow: none;
}

.profile-btn.secondary:hover {
    background: #e5e7eb;
}

.profile-note-card {
    margin-top: 24px;
}

.profile-note-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

@media (max-width: 980px) {
    .profile-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-page {
        padding: 24px 16px 60px;
    }

    .profile-card,
    .profile-form-card,
    .profile-note-card {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-btn {
        width: 100%;
    }
}

input[type="file"] {
    padding: 10px;
    border-radius: 14px;
    border: 1px dashed rgba(0,0,0,0.15);
    background: #fafafa;
    cursor: pointer;
}

input[type="file"]:hover {
    background: #f2f2f2;
}