* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a2a1a 0%, #0d1a0d 100%);
    color: #fff;
    min-height: 100vh;
    line-height: 1.6;
}

.header {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #059669;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-greeting {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    margin-right: 5px;
}

.btn {
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #059669;
    color: white;
    border-color: #059669;
}

.btn-primary:hover {
    background-color: #047857;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
    background-color: #0f172a;
    color: #ffffff;
    border: none;
}

.btn-secondary:hover {
    background-color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.profile-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.card {
    background: #1e2e1e;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
}

.card-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.avatar-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD54F, #FFA726);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 4px solid #4CAF50;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-btn {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.avatar-upload-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #b8d4b8;
    font-weight: 600;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    background: #2a3d2a;
    border: 2px solid #3a4d3a;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4CAF50;
    background: #344d34;
}

textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-group .btn {
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-group .btn-primary {
    background: #4CAF50;
    color: white;
    flex: 1;
}

.btn-group .btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-group .btn-secondary {
    background: transparent;
    border: 2px solid #4CAF50;
    color: #4CAF50;
    padding: 12px 30px;
}

.btn-group .btn-secondary:hover {
    background: rgba(76, 175, 80, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.info-text {
    color: #90CAF9;
    font-size: 13px;
    margin-top: 5px;
}

.success-message {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4CAF50;
    color: #4CAF50;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.emoji-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.emoji-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2a3d2a;
    border: 2px solid #3a4d3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.emoji-option:hover,
.emoji-option.selected {
    border-color: #4CAF50;
    background: #344d34;
    transform: scale(1.1);
}

.preview-section {
    background: linear-gradient(135deg, #2d4a2d 0%, #1a3a1a 100%);
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

.preview-header {
    display: flex;
    gap: 20px;
    align-items: center;
}

.preview-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD54F, #FFA726);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.preview-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.preview-bio {
    color: #b8d4b8;
    font-size: 14px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .avatar-section {
        flex-direction: column;
        text-align: center;
    }
}