:root {
    --navy-deep: #0a1f44;
    --navy-mid: #1a3a6b;
    --navy-light: #2c5282;
    --gold: #d4af37;
    --gold-light: #f0d674;
    --gold-dark: #b8941f;
    --white: #ffffff;
    --gray-light: #f7fafc;
    --gray-mid: #e2e8f0;
    --gray-dark: #64748b;
    --shadow-sm: 0 2px 8px rgba(10, 31, 68, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 31, 68, 0.12);
    --shadow-lg: 0 8px 40px rgba(10, 31, 68, 0.16);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-light);
    color: var(--navy-deep);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-icon {
    font-size: 1.75rem;
}

.nav-brand h1 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.nav-brand small {
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-back {
    padding: 0.5rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: transparent;
    color: var(--white);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold-light);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.btn-logout {
    padding: 0.5rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: transparent;
    color: var(--white);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold-light);
    color: var(--gold-light);
    transform: translateY(-2px);
}

/* ==================== MAIN ==================== */
.main-content {
    flex: 1;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    animation: fadeUp 0.5s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== ALERT ==================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    animation: fadeUp 0.4s ease-out;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid #f59e0b;
    color: #92400e;
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.alert p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

/* ==================== PROFILE CARD ==================== */
.profile-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.profile-header h2 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-email {
    color: var(--gold-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ==================== FORM ==================== */
.profile-form {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .full {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--navy-deep);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group input {
    padding: 0.85rem 1rem;
    border: 2px solid var(--gray-mid);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--navy-deep);
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.form-group input:disabled {
    background: var(--gray-light);
    color: var(--gray-dark);
    cursor: not-allowed;
}

.form-group input::placeholder {
    color: var(--gray-dark);
    opacity: 0.5;
}

.hint {
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-top: 0.15rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    box-shadow: var(--shadow-gold);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==================== FOOTER ==================== */
.page-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--gray-dark);
    font-size: 0.85rem;
}

/* ==================== NOTIFICATION ==================== */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.35);
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 2000;
    animation: notifIn 0.35s ease-out;
}

.notification.error {
    background: linear-gradient(135deg, #e53e3e, #fc8181);
}

@keyframes notifIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notifOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .profile-header {
        padding: 1.5rem;
    }

    .profile-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-header h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1rem;
    }

    .btn-back {
        display: none;
    }

    .profile-avatar {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }
}

/* Accessibility */
*:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}