/* ===== RESET ===== */
*{ box-sizing:border-box; margin:0; padding:0; }
body{ font-family:Inter,system-ui,-apple-system,sans-serif; }

/* ===== NAVBAR ===== */
.navbar{
  background:#fff;
  border-bottom:1px solid #e2e8f0;
  padding:16px 6%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:sticky;
  top:0;
  z-index:200;
}

.logo img{ height:36px; }

.nav-links{
  display:flex;
  align-items:center;
  gap:28px;
}

.nav-links a{
  text-decoration:none;
  color:#64748b;
  font-weight:700;
  font-size:14px;
  position:relative;
}

.nav-links a.active{
  color:#2563eb;
}

.nav-links a.active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  bottom:-18px;
  background:#2563eb;
  border-radius:2px;
}

/* ===== USER MENU ===== */
.user-menu{
  display:flex;
  align-items:center;
  gap:14px;
}

.credits-badge{
  background:linear-gradient(135deg,#3b82f6,#8b5cf6);
  color:#fff;
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
}

/* ===== AVATAR BTN ===== */
.profile-dropdown{ position:relative; }

.avatar-btn{
  width:40px;
  height:40px;
  border-radius:999px;
  border:2px solid #111827;
  background:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.avatar-circle{
  width:32px;
  height:32px;
  border-radius:999px;
  background:#3b82f6;
  color:#fff;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ===== DROPDOWN ===== */
.dropdown-panel{
  position:absolute;
  right:0;
  top:54px;
  width:320px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  box-shadow:0 25px 60px rgba(15,23,42,0.18);
  overflow:hidden;
  padding:0;

  opacity:0;
  visibility:hidden;
  transform:translateY(-10px);
  transition:0.2s;
  z-index:999;
}

.dropdown-panel.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.dropdown-user{
  padding:14px 16px;
  background:#f8fafc;
}

.dropdown-user-left{
  display:flex;
  gap:12px;
  align-items:center;
}

.dropdown-avatar{
  width:42px;
  height:42px;
  border-radius:999px;
  background:#3b82f6;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.dropdown-user-text{ line-height:1.2; }

.dropdown-username{
  font-weight:900;
  color:#0f172a;
  font-size:14px;
}

.dropdown-email{
  font-size:12px;
  color:#64748b;
  margin-top:3px;
}

.dropdown-divider{
  height:1px;
  background:#e2e8f0;
}

.dropdown-link{
  width:100%;
  border:none;
  background:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  font-weight:800;
  font-size:14px;
  color:#0f172a;
  text-decoration:none;
  transition:0.2s;
}

.dropdown-link:hover{
  background:#f8fafc;
  color:#2563eb;
}

.dropdown-ic{
  width:34px;
  height:34px;
  border-radius:12px;
  background:#eef2ff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
}

.dropdown-link.logout{
  color:#dc2626;
}

.dropdown-link.logout:hover{
  background:#fef2f2;
  color:#b91c1c;
}

.dropdown-footer{
  padding:12px 16px;
  font-size:12px;
  color:#94a3b8;
  background:#fff;
}

/* ===== MODAL OVERLAY ===== */
.account-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.55);
  backdrop-filter:blur(8px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2000;
  padding:20px;
}

.account-overlay.show{ display:flex; }

/* ===== MODAL BOX ===== */
.account-box{
  width:min(980px, 96vw);
  height:min(560px, 92vh);
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 30px 90px rgba(0,0,0,0.30);
}

/* ===== MODAL HEADER ===== */
.account-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding:18px 22px;
  border-bottom:1px solid #e2e8f0;
}

.account-top h2{
  font-size:22px;
  font-weight:900;
  color:#0f172a;
}

.account-top p{
  margin-top:4px;
  font-size:13px;
  color:#64748b;
}

.account-close{
  border:none;
  background:#f1f5f9;
  width:38px;
  height:38px;
  border-radius:12px;
  cursor:pointer;
}

.account-close:hover{ background:#e2e8f0; }

/* ===== BODY GRID ===== */
.account-body{
  display:grid;
  grid-template-columns:260px 1fr;
  height:calc(100% - 78px);
}

.account-side{
  background:#f8fafc;
  border-right:1px solid #e2e8f0;
  padding:18px;
}

.side-tab{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:none;
  border-radius:12px;
  background:transparent;
  font-weight:800;
  cursor:pointer;
  color:#334155;
  margin-bottom:10px;
  text-align:left;
}

.side-tab:hover{
  background:#eef2ff;
  color:#1d4ed8;
}

.side-tab.active{
  background:#e0f2fe;
  color:#1e40af;
}

.tab-ic{
  width:32px;
  height:32px;
  border-radius:10px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e2e8f0;
}

/* ===== CONTENT ===== */
.account-content{
  padding:22px;
}

.account-content h3{
  font-size:18px;
  font-weight:900;
  color:#0f172a;
  margin-bottom:16px;
}

.profile-card{
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.profile-left{
  display:flex;
  align-items:center;
  gap:12px;
}

.profile-avatar{
  width:44px;
  height:44px;
  border-radius:999px;
  background:#3b82f6;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.profile-text .profile-name{
  font-weight:900;
  color:#0f172a;
}

.profile-text .profile-email{
  margin-top:3px;
  font-size:13px;
  color:#64748b;
}

.profile-update{
  border:none;
  background:#eff6ff;
  color:#2563eb;
  font-weight:900;
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
}
.profile-update:hover{ background:#dbeafe; }

.profile-line{
  height:1px;
  background:#e2e8f0;
  margin:18px 0;
}

.connected-title{
  font-weight:900;
  color:#0f172a;
  margin-bottom:10px;
}

.connected-row{
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.connected-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.google-ic{
  width:32px;
  height:32px;
  border-radius:10px;
  background:#fff;
  border:1px solid #e2e8f0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#ea4335;
}

.connected-provider{
  font-weight:900;
  color:#0f172a;
}

.connected-mail{
  font-size:12px;
  color:#64748b;
}

.dots-btn{
  border:none;
  background:#f1f5f9;
  width:38px;
  height:38px;
  border-radius:12px;
  cursor:pointer;
  font-size:18px;
}
.dots-btn:hover{ background:#e2e8f0; }

.security-card{
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:18px;
  background:#fff;
}

.security-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.security-title{
  font-weight:900;
  color:#0f172a;
}

.security-sub{
  margin-top:6px;
  font-size:13px;
  color:#64748b;
}

.security-btn{
  border:none;
  background:#2563eb;
  color:#fff;
  font-weight:900;
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
}
.security-btn:hover{ opacity:0.9; }

.delete-account{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.delete-title{
  font-weight:900;
  color:#0f172a;
}

.delete-link{
  color:#dc2626;
  text-decoration:none;
  font-weight:900;
}
.delete-link:hover{ text-decoration:underline; }

/* ===== RESPONSIVE ===== */
@media(max-width:768px){
  .nav-links{ display:none; }
  .account-body{ grid-template-columns:1fr; }
  .account-side{ border-right:none; border-bottom:1px solid #e2e8f0; }
}
/* ===== MODALS ===== */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:3000;
}

.modal-overlay.show{ display:flex; }

.modal-box{
  width:420px;
  background:#fff;
  border-radius:16px;
  padding:22px;
  box-shadow:0 30px 80px rgba(0,0,0,.25);
}

.modal-box h3{
  font-weight:900;
  margin-bottom:16px;
}

.modal-box input{
  width:100%;
  padding:10px;
  border-radius:10px;
  border:1px solid #e2e8f0;
  margin-bottom:14px;
}

.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

.btn-primary{
  background:#2563eb;
  color:#fff;
  border:none;
  padding:10px 16px;
  border-radius:12px;
  font-weight:900;
}

.btn-link{
  background:none;
  border:none;
  color:#2563eb;
  font-weight:900;
  cursor:pointer;
}

.btn-danger{
  background:#dc2626;
  color:#fff;
  border:none;
  padding:10px 16px;
  border-radius:12px;
}

.btn-danger:disabled{
  opacity:.5;
  cursor:not-allowed;
}

.btn-danger-text{
  background:none;
  border:none;
  color:#dc2626;
  font-weight:900;
  cursor:pointer;
}

/* ===== DOTS MENU ===== */
.dots-wrap{ position:relative; }

.dots-menu{
  position:absolute;
  right:0;
  top:42px;
  background:#fff;
  border-radius:12px;
  box-shadow:0 15px 40px rgba(0,0,0,.2);
  display:none;
}

.dots-menu.show{ display:block; }

.dots-menu button{
  padding:10px 16px;
  width:100%;
}

