:root {
    --primary: #0a2f1d;
    --accent: #c5a880;
    --green: #2d6a4f;
    --bg: #f0f2f0;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', 'Hind Siliguri', sans-serif; }
body { background: var(--bg); overflow-x: hidden; }

/* --- Auth Overlay --- */
.auth-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 47, 29, 0.95);
    display: flex; justify-content: center; align-items: center; z-index: 9999;
}
.auth-container {
    background: var(--white); padding: 40px; border-radius: 20px;
    width: 100%; max-width: 400px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.auth-header i { font-size: 50px; color: var(--accent); margin-bottom: 15px; }
.auth-header h2 { color: var(--primary); margin-bottom: 5px; }
.auth-header p { font-size: 14px; color: #666; margin-bottom: 30px; }

.method-btn {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 10px;
    background: white; cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 10px; font-weight: 500; margin-bottom: 20px;
}
.divider { margin: 20px 0; border-bottom: 1px solid #ddd; position: relative; }
.divider span { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: white; padding: 0 10px; color: #999; font-size: 12px; }

.input-group { text-align: left; margin-bottom: 20px; }
.input-group label { display: block; font-size: 13px; margin-bottom: 5px; font-weight: 600; }
.input-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; outline: none; }

.main-auth-btn { width: 100%; padding: 14px; background: var(--primary); color: white; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; }
.auth-footer { margin-top: 20px; font-size: 14px; }
.auth-footer a { color: var(--green); font-weight: 600; text-decoration: none; }

/* --- Profile Content --- */
.profile-container { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.profile-header { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 5px 15px rgba(229, 252, 24, 0.348); }
.cover-photo { height: 180px; background: url('assets/banner.svg'); background-size: cover; background-position: center; }
.profile-info-main { padding: 0 30px 30px; display: flex; align-items: flex-end; gap: 20px; margin-top: -60px; position: relative; }

.avatar-wrapper { position: relative; }
.avatar-wrapper img { width: 130px; height: 130px; border-radius: 50%; border: 5px solid var(--white); object-fit: cover; }
.verified-badge { position: absolute; bottom: 10px; right: 5px; background: #0067e5; color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid var(--white); }

.user-details h2 { font-size: 24px; color: var(--primary); }
.role-tag { font-size: 12px; background: #e8f5e9; color: var(--green); padding: 4px 12px; border-radius: 15px; vertical-align: middle; }
.user-details p { font-size: 14px; color: #777; margin-top: 5px; }

.edit-profile-btn { margin-left: auto; padding: 10px 20px; border: 1px solid #ddd; background: rgba(9, 166, 43, 0.225); border-radius: 8px; cursor: pointer; font-weight: 600; }

.profile-body { display: grid; grid-template-columns: 300px 1fr; gap: 30px; margin-top: 30px; }
.profile-sidebar { display: flex; flex-direction: column; gap: 20px; }
.stat-card { background: var(--primary); color: white; padding: 20px; border-radius: 15px; display: flex; justify-content: space-around; text-align: center; }
.stat-item h3 { font-size: 18px; }
.stat-item p { font-size: 11px; opacity: 0.8; }

.profile-menu { background: var(--white); list-style: none; border-radius: 15px; overflow: hidden; }
.profile-menu li { padding: 15px 20px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: 0.3s; font-size: 15px; display: flex; align-items: center; gap: 12px; }
.profile-menu li i { color: #888; width: 20px; }
.profile-menu li:hover { background: #f9f9f9; }
.profile-menu li.active { color: var(--green); font-weight: 600; }
.profile-menu li span { margin-left: auto; font-size: 10px; background: #e8f5e9; color: #2e7d32; padding: 2px 8px; border-radius: 10px; }
.logout-link { color: #d32f2f !important;  }

.profile-main-content { background: var(--white); border-radius: 20px; padding: 30px; }
.tab-header { border-bottom: 1px solid #eee; margin-bottom: 30px; }
.tab-btn { background: none; border: none; padding: 10px 20px; font-size: 16px; cursor: pointer; position: relative; }
.tab-btn.active { color: var(--green); font-weight: 600; }
.tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: var(--green); }

.empty-state { text-align: center; padding: 50px 0; color: #999; }
.empty-state i { font-size: 60px; margin-bottom: 15px; opacity: 0.3; }
.sell-btn-large { margin-top: 20px; background: var(--green); color: white; border: none; padding: 12px 30px; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* Desktop Nav (Shared) */
.desktop-nav { background: var(--primary); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; color: white; }
.logo-zone { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: white; text-decoration: none; font-size: 14px; }
.nav-actions .sell-btn { background: var(--green); padding: 5px 15px; border-radius: 5px; color: white; text-decoration: none; }

/* Mobile Bottom Nav */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--white); padding: 10px 0; justify-content: space-around; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); }
.bottom-nav-item { color: #888; text-decoration: none; font-size: 11px; text-align: center; }
.bottom-nav-item i { font-size: 20px; display: block; }
.bottom-nav-item.active { color: var(--accent); }

@media (max-width: 850px) {
    .profile-body { grid-template-columns: 1fr; }
    .desktop-nav { display: none; }
    .mobile-bottom-nav { display: flex; }
    .profile-info-main { flex-direction: column; align-items: center; text-align: center; }
    .edit-profile-btn { margin: 10px 0; }
}
/* --- New Auth Styles Additions --- */
.input-group input { 
    width: 100%; 
    padding: 12px 15px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    outline: none; 
    font-size: 14px;
    transition: 0.3s;
}
.input-group input:focus {
    border-color: var(--green);
    box-shadow: 0 0 5px rgba(45, 106, 79, 0.2);
}
.toggle-link {
    color: var(--green);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.auth-container {
    max-height: 90vh;
    overflow-y: auto;
}
/* Scrollbar hide for clean look */
.auth-container::-webkit-scrollbar { display: none; }
.top-nav {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.back-btn {
    margin-right: 15px;
    font-size: 20px;
    color: #0a2f1d;
    text-decoration: none;
}
.page-title {
    font-size: 18px;
    font-weight: 600;
    color: #0a2f1d;
}
.profile-menu li a.profile-menu-link {
    display: flex;
    align-items: center;
    width: 100%;
    color: inherit;     
    text-decoration: none; 
}
/* OTP Button Disabled State */
.main-auth-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

#regEmail:disabled {
    background-color: #f5f5f5;
    color: #888;
}
.logo-zone .nav-logo:hover {
    transform: scale(1.05); 
}


@media (max-width: 768px) {
    .logo-zone .nav-logo {
        height: 80px !important; 
    }
}