/* =========================================================
   Detail Akun — view mode + edit form
========================================================= */

.lajunet-profile-page {
    width: 100%;
}

.lajunet-profile-view[hidden],
.lajunet-profile-edit[hidden] {
    display: none !important;
}

.lajunet-profile-view-card {
    border: 1px solid #e8edf5;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 32px rgba(91, 5, 175, 0.07);
}

.lajunet-profile-view-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px;
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 48%, #ffffff 100%);
    border-bottom: 1px solid #ede9fe;
}

.lajunet-profile-view-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid #ede9fe;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lajunet-profile-view-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lajunet-profile-view-avatar .lajunet-profile-photo-placeholder {
    font-size: 36px;
}

.lajunet-profile-view-identity {
    flex: 1;
    min-width: 200px;
}

.lajunet-profile-view-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(91, 33, 182, 0.1);
    color: #5b21b6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lajunet-profile-view-name {
    margin: 10px 0 4px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

.lajunet-profile-view-sub {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    word-break: break-all;
}

.lajunet-profile-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(109, 40, 217, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lajunet-profile-edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(109, 40, 217, 0.34);
}

.lajunet-profile-view-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 24px 28px 28px;
}

.lajunet-profile-view-field {
    padding: 16px 18px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #fafafa;
}

.lajunet-profile-view-field--wide {
    grid-column: 1 / -1;
}

.lajunet-profile-view-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.lajunet-profile-view-value {
    display: block;
    font-size: 16px;
    line-height: 1.45;
    color: #111827;
    word-break: break-word;
}

.lajunet-profile-view-value--muted {
    color: #64748b;
    font-weight: 600;
}

.lajunet-profile-edit-head {
    margin-bottom: 8px;
}

.lajunet-profile-edit-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}

.lajunet-profile-edit-desc {
    margin: 0 0 18px;
    font-size: 14px;
    color: #6b7280;
}

.lajunet-profile-edit .lajunet-profile-photo-card {
    margin-top: 0;
}

.lajunet-profile-edit fieldset {
    margin: 18px 0 0;
    padding: 18px;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    background: #fafafa;
}

.lajunet-profile-edit fieldset legend {
    padding: 0 6px;
    font-size: 14px;
    font-weight: 800;
    color: #374151;
}

.lajunet-profile-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}

.lajunet-profile-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lajunet-profile-cancel-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.lajunet-profile-save-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 22px !important;
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lajunet-profile-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(22, 163, 74, 0.3);
}

/* =========================================================
   Foto profil — form Detail Akun
========================================================= */

.lajunet-profile-photo-card {
    margin: 0 0 24px;
    padding: 22px;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
    box-shadow: 0 10px 28px rgba(91, 5, 175, 0.06);
}

.lajunet-profile-photo-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
}

.lajunet-profile-photo-desc {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

.lajunet-profile-photo-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.lajunet-profile-photo-preview {
    width: 192px;
    height: 192px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid #ede9fe;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lajunet-profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lajunet-profile-photo-placeholder {
    font-size: 56px;
    font-weight: 800;
    color: #5b21b6;
    letter-spacing: 0.02em;
}

.lajunet-profile-photo-controls {
    flex: 1;
    min-width: 200px;
}

.lajunet-profile-photo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.lajunet-profile-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.lajunet-profile-photo-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lajunet-profile-photo-upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(91, 5, 175, 0.22);
}

.lajunet-profile-photo-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lajunet-profile-photo-delete-btn:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
}

.lajunet-profile-photo-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: #6b7280;
}

/* =========================================================
   Avatar umum + header dropdown
========================================================= */

.lajunet-avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.lajunet-avatar--placeholder {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #5b21b6, #8b5cf6);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}

.laju-account-menu {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow: visible !important;
    z-index: 10000030 !important;
}

.laju-account-menu.is-open {
    z-index: 10000030 !important;
    overflow: visible !important;
}

.laju-account-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    background: #ffffff;
    color: inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.laju-account-trigger:hover,
.laju-account-trigger:focus,
.laju-account-trigger:focus-visible {
    background: #ffffff !important;
    border-color: #c4b5fd !important;
    box-shadow: 0 6px 18px rgba(91, 5, 175, 0.18) !important;
    transform: scale(1.03);
    outline: none !important;
}

.laju-account-trigger-avatar {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    object-fit: cover;
}

.laju-account-trigger .lajunet-avatar--placeholder {
    width: 100% !important;
    height: 100% !important;
    font-size: 14px !important;
}

.laju-account-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, calc(100vw - 24px));
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    z-index: 10000050;
    overflow: hidden;
    pointer-events: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.laju-account-dropdown[hidden] {
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.laju-account-menu.is-open .laju-account-dropdown {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.laju-account-menu.is-open .laju-account-dropdown[hidden] {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.laju-account-dropdown-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
}

.laju-account-dropdown-name {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    word-break: break-word;
}

.laju-account-dropdown-email {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    word-break: break-all;
}

.laju-account-dropdown-actions {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
}

.laju-account-dropdown-edit,
.laju-account-dropdown-logout {
    display: flex;
    align-items: center;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.laju-account-dropdown-edit {
    color: #5b21b6 !important;
    background: #f5f3ff;
}

.laju-account-dropdown-edit:hover {
    background: #ede9fe;
}

.laju-account-dropdown-logout {
    color: #dc2626 !important;
}

.laju-account-dropdown-logout:hover {
    background: #fef2f2;
}

@media (max-width: 768px) {
    .lajunet-profile-view-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 18px;
    }

    .lajunet-profile-edit-btn {
        width: 100%;
    }

    .lajunet-profile-view-grid {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .lajunet-profile-form-actions {
        flex-direction: column;
    }

    .lajunet-profile-cancel-btn,
    .lajunet-profile-save-btn {
        width: 100%;
    }

    .lajunet-profile-photo-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .laju-header-toolbar {
        gap: 8px !important;
    }

    .laju-account-trigger {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }
}
