
/* General */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0b1120;
    color: #e5e7eb;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

.eyebrow {
    color: #818cf8;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.7;
}


/* =========================
   Navigation
========================= */

.navbar {
    position: sticky;
    top: 12px;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;

    margin: 12px 3%;
    padding: 14px 24px;

    border: 1px solid #253047;
    border-radius: 16px;
    background: rgba(11, 17, 32, 0.92);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand h2 {
    margin: 0;
    font-size: 18px;
}

.brand p {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
}

.nav-links a {
    padding: 9px 10px;
    border-radius: 7px;
    color: #94a3b8;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: #1e293b;
    color: #ffffff;
}

.nav-links .signup-link {
    background: #6366f1;
    color: #ffffff;
}

.nav-links .signup-link:hover {
    background: #4f46e5;
}



/* Main layout */
.profile-container {
    width: min(1100px, 92%);
    margin: 48px auto 70px;
}

.page-heading {
    margin-bottom: 30px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #818cf8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.page-heading h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.25;
}

.page-heading > p:last-child {
    color: #94a3b8;
    margin-top: 12px;
}

/* Profile overview */
.profile-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: 28px;
    margin-bottom: 26px;
    background: #111827;
    border: 1px solid #253047;
    border-radius: 16px;
}

.avatar-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.avatar-wrapper {
    width: 112px;
    height: 112px;
    padding: 4px;
    border: 2px solid #6366f1;
    border-radius: 50%;
    overflow: hidden;
    background: #1e293b;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-actions h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 23px;
}

.muted {
    margin: 3px 0 14px;
    color: #94a3b8;
    font-size: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.button-primary {
    color: #ffffff;
    background: #4f46e5;
}

.button-primary:hover {
    background: #6366f1;
}

.button-secondary {
    color: #cbd5e1;
    background: #1e293b;
    border-color: #334155;
}

.button-secondary:hover {
    background: #253047;
}

.text-button {
    display: inline-block;
    margin-left: 10px;
    padding: 8px 4px;
    border: none;
    background: transparent;
    color: #f87171;
    font-size: 13px;
    cursor: pointer;
}

.text-button:hover {
    color: #fca5a5;
}

.helper-text {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
}

.account-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid #334155;
    border-radius: 30px;
    color: #cbd5e1;
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #818cf8;
}

/* Information cards */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 26px;
}

.profile-card {
    min-width: 0;
    padding: 28px;
    background: #111827;
    border: 1px solid #253047;
    border-radius: 16px;
}

.card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 25px;
}

.card-heading .eyebrow {
    margin-bottom: 5px;
}

.card-heading h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 21px;
}

.card-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid #3730a3;
    border-radius: 10px;
    background: #1e1b4b;
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 700;
}

.section-description {
    margin: -10px 0 22px;
    color: #94a3b8;
    font-size: 14px;
}

/* Forms */
.form-group {
    min-width: 0;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #334155;
    border-radius: 8px;
    outline: none;
    background: #0b1120;
    color: #f8fafc;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group input:disabled {
    color: #64748b;
    background: #172033;
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 6px;
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 25px;
    padding: 14px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #0b1120;
}

.security-note p {
    margin: 0;
    color: #94a3b8;
    font-size: 12px;
}

.security-symbol {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 1px solid #6366f1;
    border-radius: 50%;
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 700;
}

/* Feedback */
.page-message {
    min-height: 24px;
    margin: 24px 0 0;
    font-size: 14px;
}

.page-message.success {
    color: #a5b4fc;
}

.page-message.error {
    color: #fca5a5;
}

/* Footer */
.footer {
    padding: 24px 5%;
    border-top: 1px solid #253047;
    color: #64748b;
    text-align: center;
    font-size: 12px;
}

/* Responsive layout */
@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 14px 16px;
    }

    .nav-links {
        justify-content: flex-start;
        gap: 5px;
    }

    .nav-links a {
        font-size: 12px;
        padding: 8px;
    }

    .profile-container {
        margin-top: 32px;
    }

    .profile-overview,
    .profile-card {
        padding: 20px;
    }

    .avatar-section {
        align-items: flex-start;
        gap: 16px;
    }

    .avatar-wrapper {
        width: 84px;
        height: 84px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .account-badge {
        font-size: 12px;
    }
}
