


/* =========================================
   PAGE INTRODUCTION
========================================= */

.profile-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.profile-intro h1 {
    margin: 8px 0;
    
}

.profile-intro h1 span {
    color: var(--accent);
}

.profile-intro p {
    max-width: 570px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 30px;
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    white-space: nowrap;
}

.status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 10px var(--good);
}


/* =========================================
   PROFILE OVERVIEW
========================================= */

.profile-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 28px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.profile-avatar {
    position: relative;
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #08101d;
    font: 700 22px "Space Grotesk", sans-serif;
    box-shadow: 0 8px 30px var(--glow);
}

.avatar-status {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 17px;
    height: 17px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--good);
}

.profile-identity-details h2 {
    margin: 5px 0;
    font: 700 24px "Space Grotesk", sans-serif;
}

.profile-identity-details p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.profile-tag {
    padding: 5px 9px;
    border: 1px solid var(--accent-border);
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
}

.profile-overview-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.member-since {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .12em;
}

.member-since strong {
    color: var(--text);
    font-size: 11px;
    letter-spacing: .04em;
}


/* =========================================
   BUTTONS
========================================= */

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 17px;
    border: 1px solid var(--accent-border);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
    cursor: pointer;
}

.primary-btn {
    background: var(--accent);
    color: #08101d;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 22px var(--glow);
}

.secondary-btn {
    width: 100%;
    margin-top: 22px;
    background: var(--surface-soft);
    color: var(--text);
}

.secondary-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.text-btn {
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.text-btn:hover {
    opacity: .75;
}


/* =========================================
   LEARNING STATISTICS
========================================= */

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    transition: .25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-border);
}

.stat-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    margin-bottom: 17px;
    border: 1px solid var(--accent-border);
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 17px;
}

.stat-label {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
}

.stat-value {
    margin: 7px 0;
    font: 700 31px "Space Grotesk", sans-serif;
    letter-spacing: -1px;
}

.stat-description {
    color: var(--muted);
    font-size: 10px;
}


/* =========================================
   MAIN CONTENT GRID
========================================= */

.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.profile-panel {
    min-width: 0;
    padding: 24px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 6px 0 0;
    font: 700 19px "Space Grotesk", sans-serif;
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 11px;
}


/* =========================================
   PERSONAL INFORMATION
========================================= */

.information-list {
    display: flex;
    flex-direction: column;
}

.information-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.information-item:last-child {
    border-bottom: 0;
}

.information-item span {
    color: var(--muted);
    font-size: 11px;
}

.information-item strong {
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}


/* =========================================
   LEARNING PROGRESS
========================================= */

.progress-level {
    padding: 6px 10px;
    border: 1px solid var(--accent-border);
    border-radius: 7px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
}

.progress-summary {
    margin-bottom: 23px;
}

.progress-summary > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 11px;
}

.progress-summary span {
    color: var(--muted);
    font-size: 11px;
}

.progress-summary strong {
    color: var(--accent);
    font: 700 19px "Space Grotesk", sans-serif;
}

.progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface-soft);
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 12px var(--glow);
}

.progress-milestones {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.milestone-icon {
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--accent-border);
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
}

.milestone-icon.current {
    background: var(--accent);
    color: #08101d;
}

.milestone-icon.locked {
    border-color: var(--line);
    background: var(--surface-soft);
    color: var(--muted);
}

.milestone-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.milestone-item strong {
    font-size: 11px;
}

.milestone-item small {
    color: var(--muted);
    font-size: 9px;
}


/* =========================================
   ACHIEVEMENTS
========================================= */

.achievements-section {
    padding: 25px;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 9px;
    padding: 19px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
    transition: .2s ease;
}

.achievement-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-border);
}

.achievement-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid var(--accent-border);
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 20px;
}

.achievement-item strong {
    font: 600 12px "Space Grotesk", sans-serif;
}

.achievement-item span:last-child {
    max-width: 150px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.6;
}


/* =========================================
   ACCOUNT SETTINGS
========================================= */

.account-settings {
    padding: 25px;
}

.settings-list {
    display: flex;
    flex-direction: column;
}

.settings-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 5px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: .2s ease;
}

.settings-item:hover .settings-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.settings-icon {
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-soft);
    color: var(--accent);
    font-size: 16px;
}

.settings-description {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
}

.settings-description strong {
    font-size: 11px;
    font-weight: 600;
}

.settings-description small {
    color: var(--muted);
    font-size: 10px;
}

.settings-arrow {
    color: var(--muted);
    font-size: 17px;
    transition: .2s ease;
}

.account-danger-zone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding: 19px;
    border: 1px solid rgba(255, 90, 110, .2);
    border-radius: 13px;
    background: rgba(255, 70, 90, .045);
}

.account-danger-zone > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-danger-zone strong {
    font-size: 11px;
}

.account-danger-zone small {
    color: var(--muted);
    font-size: 10px;
}

.danger-btn {
    padding: 9px 14px;
    border: 1px solid rgba(255, 90, 110, .3);
    border-radius: 9px;
    background: rgba(255, 70, 90, .1);
    color: #ff7185;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.danger-btn:hover {
    background: rgba(255, 70, 90, .2);
}


/* =========================================
   RESPONSIVE DESIGN
   Premium NEXUS Layout
========================================= */

/* =========================================
   TABLETS & SMALL LAPTOPS
========================================= */

@media (max-width: 1000px) {

    .profile-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .profile-panel {
        padding: 20px;
    }

    .profile-overview {
        padding: 24px;
    }

    .profile-stats {
        gap: 12px;
    }

    .stat-card {
        padding: 18px;
    }

    .achievement-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 9px;
    }

}


/* =========================================
   TABLET PORTRAIT
========================================= */

@media (max-width: 760px) {

    .profile-page {
        gap: 18px;
    }

    .profile-intro h1 {
        font-size: 32px;
    }

    .profile-overview {
        padding: 20px;
        gap: 15px;
    }

    .profile-identity {
        gap: 14px;
    }

    .profile-avatar {
        width: 68px;
        height: 68px;
        border-radius: 18px;
        font-size: 19px;
    }

    .profile-identity-details h2 {
        font-size: 20px;
    }

    .profile-overview-actions {
        gap: 12px;
    }

    .member-since {
        font-size: 8px;
    }

    .profile-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 25px;
    }

    .stat-label {
        font-size: 8px;
    }

    .stat-description {
        font-size: 9px;
        line-height: 1.5;
    }

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

    .profile-panel,
    .achievements-section,
    .account-settings {
        padding: 20px;
    }

    .achievement-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}


/* =========================================
   MOBILE LANDSCAPE & LARGE PHONES
========================================= */

@media (max-width: 580px) {

    .profile-page {
        padding-top: 22px;
        padding-bottom: 45px;
        gap: 16px;
    }

    .profile-intro {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .profile-intro h1 {
        font-size: 27px;
    }

    .profile-intro p {
        font-size: 11px;
    }

    .profile-status {
        padding: 8px 10px;
        font-size: 8px;
    }

    .profile-overview {
        flex-direction: row;
        align-items: center;
        padding: 17px;
    }

    .profile-identity {
        min-width: 0;
    }

    .profile-avatar {
        width: 55px;
        height: 55px;
        border-radius: 15px;
        font-size: 15px;
    }

    .profile-identity-details h2 {
        font-size: 17px;
    }

    .profile-identity-details p {
        font-size: 10px;
    }

    .profile-tags {
        gap: 5px;
        margin-top: 8px;
    }

    .profile-tag {
        padding: 4px 6px;
        font-size: 7px;
    }

    .profile-overview-actions {
        width: auto;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .member-since {
        text-align: right;
    }

    .primary-btn {
        min-height: 35px;
        padding: 0 11px;
        font-size: 9px;
    }

    .profile-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .stat-card {
        padding: 12px 10px;
    }

    .stat-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 11px;
        font-size: 14px;
    }

    .stat-label {
        font-size: 7px;
        line-height: 1.4;
    }

    .stat-value {
        font-size: 22px;
    }

    .stat-description {
        font-size: 8px;
    }

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

}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 400px) {

    .profile-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-status {
        align-self: flex-start;
    }

    .profile-overview {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .profile-overview-actions {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .member-since {
        text-align: left;
    }

    .profile-stats {
        gap: 6px;
    }

    .stat-card {
        padding: 11px 8px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-description {
        font-size: 7px;
    }

    .section-heading h2 {
        font-size: 17px;
    }

    .profile-panel,
    .achievements-section,
    .account-settings {
        padding: 16px;
    }

    .information-item {
        flex-direction: row;
        align-items: center;
    }

    .information-item strong {
        text-align: right;
    }

}





/* =========================================
   PROFILE MODAL
========================================= */

.profile-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(9px);
}

.profile-modal {
    width: 100%;
    max-width: 440px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    animation: profileModalIn .2s ease-out;
}

@keyframes profileModalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.profile-modal-header h2 {
    margin: 7px 0 0;
    font: 700 21px "Space Grotesk", sans-serif;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
}

.profile-modal-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-field span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.modal-field input {
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    background: var(--input-bg);
    color: var(--text);
    font: inherit;
    font-size: 12px;
}

.modal-note {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.profile-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.modal-cancel {
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 11px;
    cursor: pointer;
}


