/* Profile Content Section */
.profile-content-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px 40px 20px;
     background: url(../images/gorakhpur-sanatan-spiritual-culture-background-form-auth-peice.jpg) center center/cover no-repeat rgba(0, 0, 0, 0.589);
    /* background: var(--black-void); */
}

.profile-page-container {
    width: 100%;
    max-width: 900px;
}


/* Make sure the main container has proper background */
.main-container .main {
    background: transparent;
}

/* Profile Card using your theme */
.profile-card {
    background: var(--graphite);
    border-radius: 15px;
    box-shadow: var(--neon-glow);
    overflow: hidden;
    border: 1px solid var(--border-strong);
}

/* Profile Header */
.profile-header {
    background: var(--main-gradient);
    color: var(--text-primary);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--overlay-gradient);
    z-index: 1;
}

.profile-header > * {
    position: relative;
    z-index: 2;
}

/* Left Section: Avatar + Info */
.profile-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Avatar */
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--liquid-gold);
    overflow: hidden;
    box-shadow: var(--accent-shadow);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar i {
    font-size: 42px;
    color: var(--liquid-gold);
}

/* Profile Info */
.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-name {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: var(--heading-font);
    color: var(--text-primary);
}

.profile-email {
    font-size: 15px;
    color: var(--text-secondary);
    opacity: 0.9;
    font-family: var(--body-font);
}

/* Right Side: Upload Button */
.profile-right {
    display: flex;
    align-items: center;
}

.btn-upload {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border: 2px solid var(--liquid-gold);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--body-font);
    transition: all 0.3s ease;
}

.btn-upload:hover {
    background: var(--liquid-gold);
    color: var(--black-void);
    transform: translateY(-2px);
    box-shadow: var(--accent-shadow);
}

/* Responsive: Stack layout on smaller screens */
@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-left {
        flex-direction: column;
    }

    .profile-right {
        justify-content: center;
    }
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    background: var(--charcoal);
    border-bottom: 1px solid var(--border-light);
}

.profile-tab {
    flex: 1;
    padding: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-bottom: 3px solid transparent;
    font-family: var(--body-font);
}

.profile-tab.active {
    color: var(--molten-orange);
    border-bottom-color: var(--molten-orange);
    background: var(--graphite);
}

.profile-tab:hover {
    color: var(--molten-orange);
    background: rgba(255, 106, 0, 0.1);
}

/* Tab Content */
.profile-tab-content {
    display: none;
    padding: 30px;
    background: var(--graphite);
}

.profile-tab-content.active {
    display: block;
}

/* Editable Fields */
.editable-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.3s ease;
    font-family: var(--body-font);
}

.editable-field:hover {
    background: var(--charcoal);
}

.editable-field label {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.field-content {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

.field-content span {
    color: var(--text-secondary);
}

.non-editable {
    font-size: 12px;
    color: var(--ashen-silver);
    font-style: italic;
}

.btn-edit {
    background: var(--molten-orange);
    color: var(--text-primary);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-family: var(--body-font);
    transition: all 0.3s ease;
    box-shadow: var(--accent-shadow);
}

.btn-edit:hover {
    background: var(--blood-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(199, 0, 57, 0.4);
}
.birth-details-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin:18px 0;
}

.birth-card{
    background:var(--charcoal);
    border:1px solid var(--border-light);
    border-radius:10px;
    padding:16px;
    transition:.3s;
}

.birth-card:hover{
    border-color:var(--molten-orange);
    box-shadow:var(--accent-shadow);
}

.birth-card label{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:14px;
    font-weight:600;
    color:var(--text-primary);
}

.birth-card .field-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.birth-card .field-content span{
    color:var(--text-secondary);
}


/* Settings */
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--charcoal);
}

.setting-item:hover {
    border-color: var(--molten-orange);
    box-shadow: var(--accent-shadow);
}

.setting-item i {
    font-size: 24px;
    color: var(--electric-blue);
    width: 40px;
}

.setting-info {
    flex: 1;
}

.setting-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
    font-family: var(--heading-font);
}

.setting-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-family: var(--body-font);
}

.btn-action {
    background: var(--electric-blue);
    color: var(--black-void);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--body-font);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}

.btn-action:hover {
    background: var(--molten-orange);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--accent-shadow);
}

/* Danger Zone */
.danger-zone {
    border: 2px solid var(--blood-red);
    border-radius: 10px;
    padding: 20px;
    background: rgba(199, 0, 57, 0.05);
}

.danger-zone h4 {
    color: var(--blood-red);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--heading-font);
}

.danger-actions {
    display: flex;
    gap: 15px;
}

.btn-danger {
    background: var(--blood-red);
    color: var(--text-primary);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--body-font);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(199, 0, 57, 0.3);
}

.btn-danger:hover {
    background: #a80030;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(199, 0, 57, 0.5);
}

.btn-danger-outline {
    background: transparent;
    border: 2px solid var(--blood-red);
    color: var(--blood-red);
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--body-font);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-danger-outline:hover {
    background: var(--blood-red);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(199, 0, 57, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 13, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--graphite);
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    border: 1px solid var(--border-strong);
    box-shadow: var(--neon-glow);
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-light);
    background: var(--charcoal);
}

.modal-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-family: var(--heading-font);
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--molten-orange);
}

.modal-body {
    padding: 30px;
    background: var(--graphite);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--body-font);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--charcoal);
    color: var(--text-primary);
    font-family: var(--body-font);
}

.form-group input:focus {
    outline: none;
    border-color: var(--molten-orange);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    background: var(--charcoal);
    color: var(--text-secondary);
    font-family: var(--body-font);
}

.radio-option:hover {
    border-color: var(--molten-orange);
    color: var(--text-primary);
}

.radio-option input {
    display: none;
}

.radio-option input:checked + .radio-checkmark {
    background: var(--molten-orange);
    border-color: var(--molten-orange);
}

.radio-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input:checked + .radio-checkmark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-cancel, .btn-save {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--body-font);
    transition: all 0.3s ease;
}

.btn-cancel {
    background: var(--steel-gray);
    color: var(--text-primary);
}

.btn-cancel:hover {
    background: var(--ashen-silver);
    transform: translateY(-2px);
}

.btn-save {
    background: var(--molten-orange);
    color: var(--text-primary);
    box-shadow: var(--accent-shadow);
}

.btn-save:hover {
    background: var(--blood-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(199, 0, 57, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-content-section {
        padding: 20px 10px;
    }
    
    .profile-header {
        padding: 30px 20px;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .profile-tab-content {
        padding: 20px;
    }
    
    .editable-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .field-content {
        justify-content: flex-start;
        width: 100%;
    }
    
    .danger-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    .birth-details-row{
        grid-template-columns:1fr;
    }
}

@media (max-width: 480px) {
    .profile-content-section{
padding-top: 3rem;
    }

    .profile-header {
        padding: 25px 15px;
    }
    
    .profile-tab-content {
        padding: 15px;
    }
    
    .editable-field {
        padding: 15px;
    }
    
    .setting-item {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-avatar i {
        font-size: 36px;
    }
}