:root{
  --blue:#2f86ff;
  --bg1:#0f2a4a;
  --bg2:#05070c;
  --card:rgba(10,14,20,.72);
  --border:rgba(80,120,170,.35);
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  min-height:100vh;
  background: radial-gradient(1200px 800px at 30% 20%, var(--bg1) 0%, var(--bg2) 60%, #020308 100%);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:#e9eef7;
}

.container{
  width:min(1600px,97vw);
  margin:22px auto;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand img{
  width:42px;
  height:42px;
  object-fit:contain;
}

.appname{
  font-weight:800;
  letter-spacing:.3px;
}

.sub{
  font-size:12px;
  color:#b8c7dd;
}

.topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.pill{
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  color:#cfe3ff;
  font-size:13px;
}

.linkbtn{
  color:#7bb5ff;
  text-decoration:none;
  font-weight:700;
}

.card{
  width:100%;
  background: var(--card);
  border:1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  border-radius:18px;
  padding:22px;
  backdrop-filter: blur(10px);
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

.users-grid{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap:14px;
}

.graphics-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

h1{
  margin:0 0 6px;
  font-size:26px;
}

hr.sep{
  border:0;
  height:1px;
  background:rgba(255,255,255,.08);
  margin:12px 0 14px;
}

label{
  display:block;
  margin:12px 0 8px;
  color:#cfe3ff;
  font-size:14px;
}

input,
select,
textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(47,134,255,.5);
  background: rgba(6,10,18,.75);
  color:#fff;
  outline:none;
}

textarea{
  min-height:90px;
}

input:focus,
select:focus,
textarea:focus{
  box-shadow: 0 0 0 3px rgba(47,134,255,.25);
}

.btn{
  margin-top:14px;
  padding:12px 14px;
  border:0;
  border-radius:12px;
  background: linear-gradient(90deg, rgba(47,134,255,.95), rgba(47,134,255,.55));
  color:#fff;
  font-weight:800;
  letter-spacing:.3px;
  cursor:pointer;
}

.btn.secondary{
  background: transparent;
  border:1px solid rgba(47,134,255,.5);
}

.note{
  color:#b8c7dd;
  font-size:13px;
}

.alert{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  margin:10px 0;
}

.alert.err{
  border-color: rgba(255,80,80,.25);
  color:#ffb1b1;
}

.alert.ok{
  border-color: rgba(0,255,140,.25);
  color:#93ffcf;
}

.login-wrap{
  width:min(420px,92vw);
  margin:40px auto;
}

.center{
  text-align:center;
}

.logoBig{
  width:64px;
  height:64px;
  object-fit:contain;
}

.line{
  width:140px;
  height:3px;
  background: rgba(47,134,255,.55);
  border-radius:999px;
  margin:10px auto 14px;
}

.links{
  margin-top:12px;
  font-size:14px;
  color:#b8c7dd;
}

.links a{
  color:#7bb5ff;
  text-decoration:none;
  font-weight:700;
}

.links a:hover{
  text-decoration:underline;
}

/* ===== Formularios centrados ===== */

.form-container{
  max-width:1100px;
  margin:0 auto;
}

/* ===== Layout vertical admin ===== */

.admin-stack{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.form-grid-top{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  align-items:end;
}

.form-grid-top .field-full{
  grid-column:1 / -1;
}

.form-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:4px;
}

.inline-form{
  display:inline;
}

.action-group{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.toolbar-users{
  display:grid;
  grid-template-columns:minmax(260px, 1fr) 180px 180px auto auto;
  gap:10px;
  align-items:center;
  margin-bottom:14px;
}

.toolbar-plans{
  display:grid;
  grid-template-columns:minmax(260px, 1fr) 180px auto auto;
  gap:10px;
  align-items:center;
  margin-bottom:14px;
}

/* ===== Stats ===== */

.stats-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(120px,1fr));
  gap:12px;
  margin-bottom:12px;
}

.stats-grid-4{
  grid-template-columns: repeat(4, minmax(120px,1fr));
}

.stats-grid-5{
  grid-template-columns: repeat(5, minmax(120px,1fr));
}

.stats-grid-6{
  grid-template-columns: repeat(6, minmax(120px,1fr));
}

.stat-card{
  background: rgba(6,10,18,.55);
  border:1px solid rgba(47,134,255,.22);
  border-radius:16px;
  padding:14px;
}

.stat-label{
  font-size:13px;
  color:#b8c7dd;
  margin-bottom:6px;
}

.stat-value{
  font-size:28px;
  font-weight:800;
}

/* ===== Quick filters ===== */

.quick-filters{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.quick-filter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(47,134,255,.35);
  background: rgba(47,134,255,.08);
  color:#cfe3ff;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
}

.quick-filter.active,
.quick-filter:hover{
  background: rgba(47,134,255,.2);
  color:#fff;
  text-decoration:none;
}

/* ===== Toolbar ===== */

.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.toolbar input{
  flex:1 1 320px;
}

.toolbar select{
  flex:0 0 180px;
}

.btn-inline{
  margin-top:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

/* ===== Shortcuts / accesos rápidos ===== */

.admin-shortcuts{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0;
}

.shortcut-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  text-decoration:none;
  font-weight:800;
  font-size:14px;
  line-height:1;
  border:1px solid transparent;
  transition:all .18s ease;
  white-space:nowrap;
}

.shortcut-btn:hover{
  text-decoration:none;
  transform:translateY(-1px);
  filter:brightness(1.05);
}

.shortcut-users{
  background: linear-gradient(90deg, rgba(47,134,255,.95), rgba(47,134,255,.55));
  color:#fff;
  border-color: rgba(47,134,255,.45);
}

.shortcut-assign{
  background: rgba(0,255,140,.10);
  color:#93ffcf;
  border-color: rgba(0,255,140,.28);
}

.shortcut-plans{
  background: rgba(255,210,80,.10);
  color:#ffe3a0;
  border-color: rgba(255,210,80,.25);
}

.shortcut-stats{
  background: rgba(180,120,255,.12);
  color:#d9b8ff;
  border-color: rgba(180,120,255,.28);
}

.shortcut-accounts{
  background: rgba(80,200,255,.10);
  color:#a8e6ff;
  border-color: rgba(80,200,255,.28);
}

.shortcut-investments{
  background: rgba(255,120,120,.10);
  color:#ffb8b8;
  border-color: rgba(255,120,120,.28);
}

.shortcut-portfolio{
  background: rgba(120,255,170,.10);
  color:#b8ffd2;
  border-color: rgba(120,255,170,.28);
}
/* ===== Tables ===== */

.table-wrap{
  width:100%;
  overflow-x:auto;
  overflow-y:visible;
  -webkit-overflow-scrolling: touch;
}

.table{
  width:100%;
  min-width:1450px;
  border-collapse:collapse;
}

.table th,
.table td{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  font-size:14px;
  vertical-align:middle;
}

.table th{
  white-space:nowrap;
}

.table td{
  white-space:nowrap;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  font-size:12px;
  white-space:nowrap;
}

.badge.ok{
  border-color:rgba(0,255,140,.25);
  color:#93ffcf;
}

.badge.warn{
  border-color:rgba(255,210,80,.25);
  color:#ffe3a0;
}

.badge.bad{
  border-color:rgba(255,80,80,.25);
  color:#ffb1b1;
}

.generic-mail{
  margin-top:4px;
  font-size:12px;
  color:#8fb8ff;
  word-break:break-all;
  white-space:normal;
}

.wa-btn{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,255,140,.25);
  color:#93ffcf;
  text-decoration:none;
  font-size:13px;
  white-space:nowrap;
}

.wa-btn:hover{
  text-decoration:none;
  filter:brightness(1.08);
}

.renew-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.mini-btn{
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(47,134,255,.35);
  background: rgba(47,134,255,.12);
  color:#fff;
  cursor:pointer;
  font-weight:700;
  white-space:nowrap;
}

.mini-btn:hover{
  background: rgba(47,134,255,.22);
}

.pagination{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.page-link{
  color:#7bb5ff;
  text-decoration:none;
  font-weight:700;
}

.page-info{
  color:#b8c7dd;
  font-size:13px;
}

/* ===== Dashboard specific widths ===== */

.table th:nth-child(1),
.table td:nth-child(1){
  min-width:100px;
  white-space:normal;
}

.table th:nth-child(2),
.table td:nth-child(2){
  min-width:100px;
}

.table th:nth-child(3),
.table td:nth-child(3){
  min-width:90px;
}

.table th:nth-child(4),
.table td:nth-child(4){
  min-width:120px;
  white-space:normal;
}

.table th:nth-child(5),
.table td:nth-child(5){
  min-width:70px;
}

.table th:nth-child(6),
.table td:nth-child(6){
  min-width:80px;
}

.table th:nth-child(7),
.table td:nth-child(7),
.table th:nth-child(8),
.table td:nth-child(8){
  min-width:95px;
  white-space:nowrap;
}

.table th:nth-child(9),
.table td:nth-child(9){
  min-width:55px;
}

.table th:nth-child(10),
.table td:nth-child(10){
  min-width:90px;
}

.table th:nth-child(11),
.table td:nth-child(11){
  min-width:95px;
}

.table th:nth-child(12),
.table td:nth-child(12){
  min-width:150px;
}

/* ===== Responsive ===== */

@media (max-width: 1200px){
  .stats-grid-6{
    grid-template-columns: repeat(3, minmax(120px,1fr));
  }

  .stats-grid-5{
    grid-template-columns: repeat(3, minmax(120px,1fr));
  }

  .stats-grid-4{
    grid-template-columns: repeat(2, minmax(120px,1fr));
  }

  .form-grid-top{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .toolbar-users{
    grid-template-columns:1fr 1fr;
  }

  .toolbar-plans{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 980px){
  .grid,
  .users-grid,
  .graphics-grid{
    grid-template-columns:1fr;
  }

  .stats-grid,
  .stats-grid-4,
  .stats-grid-5,
  .stats-grid-6{
    grid-template-columns: repeat(2, minmax(120px,1fr));
  }

  .container{
    width:min(1600px, 99vw);
  }
}

@media (max-width: 800px){
  .table{
    min-width:1200px;
  }

  .stats-grid,
  .stats-grid-4,
  .stats-grid-5,
  .stats-grid-6{
    grid-template-columns: 1fr;
  }

  .form-grid-top,
  .toolbar-users,
  .toolbar-plans{
    grid-template-columns:1fr;
  }
}

.shortcut-btn.shortcut-personal-expenses{
  background: rgba(255,180,120,.10);
  color:#ffd3b0;
  border-color: rgba(255,180,120,.28);
}

.shortcut-btn.shortcut-personal-expenses:hover{
  background: rgba(255,180,120,.20);
  color:#fff;
}

.shortcut-btn.shortcut-lank {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  border-color: rgba(124, 58, 237, 0.4);
}

.shortcut-btn.shortcut-lank:hover {
  background: rgba(124, 58, 237, 0.25);
  color: #fff;
}

.shortcut-problem-accounts{
  background: linear-gradient(135deg, #7c2d12, #b91c1c);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
}

.shortcut-problem-accounts:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(185, 28, 28, .28);
}

/* ===== Quitar flechitas en inputs number ===== */

/* Chrome, Edge, Safari */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.mini-btn.warning {
  border-color: #a06b00;
  color: #ffd27a;
}

.mini-btn.danger {
  border-color: #7a1f1f;
  color: #ffb3b3;
}

.shortcut-btn.shortcut-providers{
  background:rgba(59,130,246,.15);
  color:#93c5fd;
  border-color:rgba(59,130,246,.45);
}

.shortcut-btn.shortcut-providers:hover{
  background:rgba(59,130,246,.25);
  color:#fff;
}

/* Gmail Streaming */
.shortcut-btn.shortcut-gmail{
  background:rgba(6,182,212,.14);
  color:#67e8f9;
  border-color:rgba(6,182,212,.45);
}

.shortcut-btn.shortcut-gmail:hover{
  background:rgba(6,182,212,.24);
  color:#fff;
}

/* Tarjetas */
.shortcut-btn.shortcut-cards{
  background:rgba(239,68,68,.14);
  color:#fca5a5;
  border-color:rgba(239,68,68,.45);
}

.shortcut-btn.shortcut-cards:hover{
  background:rgba(239,68,68,.24);
  color:#fff;
}

/* Resumen Financiero */
.shortcut-btn.shortcut-finance{
  background:rgba(16,185,129,.14);
  color:#6ee7b7;
  border-color:rgba(16,185,129,.45);
}

.shortcut-btn.shortcut-finance:hover{
  background:rgba(16,185,129,.24);
  color:#fff;
}

/* Contenido Recomendado */
.shortcut-btn.shortcut-content{
    background:rgba(37,99,235,.14);
    color:#60a5fa;
    border-color:rgba(37,99,235,.45);
}

.shortcut-btn.shortcut-content:hover{
    background:rgba(37,99,235,.24);
    color:#fff;
}

.shortcut-personalstream{
    background: linear-gradient(135deg,#ff6b00,#ff0080);
    color:#fff !important;
    border:1px solid rgba(255,255,255,.15);
}

.shortcut-personalstream:hover{
    background: linear-gradient(135deg,#ff7f22,#ff2a96);
    transform: translateY(-1px);
}

/* Centro Resellers */
.shortcut-btn.shortcut-chat{
    background:rgba(168,85,247,.15);
    color:#d8b4fe;
    border-color:rgba(168,85,247,.45);
}

.shortcut-btn.shortcut-chat:hover{
    background:rgba(168,85,247,.25);
    color:#fff;
}


/* =========================================================
   MENÚ DE PERFIL EN LA BARRA SUPERIOR
   ========================================================= */

.user-menu{
  position:relative;
}

.user-menu-trigger{
  min-width:210px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:7px 10px 7px 7px;
  border-radius:14px;
  border:1px solid rgba(80,120,170,.35);
  background:rgba(6,10,18,.66);
  color:#fff;
  cursor:pointer;
  text-align:left;
  transition:border-color .2s ease, background .2s ease, transform .15s ease;
}

.user-menu-trigger:hover,
.user-menu.is-open .user-menu-trigger{
  border-color:rgba(47,134,255,.65);
  background:rgba(47,134,255,.10);
}

.user-menu-trigger:active{
  transform:scale(.99);
}

.user-avatar{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  border-radius:12px;
  overflow:hidden;
  background:linear-gradient(135deg,rgba(47,134,255,.95),rgba(37,99,235,.45));
  border:1px solid rgba(147,197,253,.38);
  color:#fff;
  font-size:14px;
  font-weight:900;
  box-shadow:0 8px 22px rgba(0,0,0,.28);
}

.user-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.user-menu-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  flex:1;
}

.user-menu-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#f8fafc;
  font-size:13px;
  line-height:1.2;
}

.user-menu-copy small{
  margin-top:3px;
  color:#9fb4d1;
  font-size:11px;
}

.user-menu-arrow{
  color:#8ec5ff;
  transition:transform .2s ease;
}

.user-menu.is-open .user-menu-arrow{
  transform:rotate(180deg);
}

.user-dropdown{
  position:absolute;
  top:calc(100% + 9px);
  right:0;
  z-index:3000;
  width:260px;
  padding:8px;
  border-radius:16px;
  border:1px solid rgba(80,120,170,.38);
  background:rgba(5,10,18,.98);
  box-shadow:0 24px 60px rgba(0,0,0,.58);
  backdrop-filter:blur(18px);
}

.user-dropdown[hidden]{
  display:none !important;
}

.user-dropdown-head{
  padding:10px 11px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:6px;
}

.user-dropdown-head strong{
  display:block;
  color:#fff;
  font-size:14px;
}

.user-dropdown-head span{
  display:block;
  margin-top:4px;
  color:#9fb4d1;
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.user-dropdown>a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 11px;
  border-radius:11px;
  color:#dbeafe;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  transition:background .18s ease, color .18s ease;
}

.user-dropdown>a i{
  width:18px;
  color:#7bb5ff;
  font-size:16px;
}

.user-dropdown>a:hover{
  background:rgba(47,134,255,.13);
  color:#fff;
  text-decoration:none;
}

.user-dropdown-separator{
  height:1px;
  margin:6px 4px;
  background:rgba(255,255,255,.08);
}

.user-dropdown>a.user-dropdown-logout{
  color:#ffb1b1;
}

.user-dropdown>a.user-dropdown-logout i{
  color:#ff8d8d;
}

/* =========================================================
   PÁGINA MI PERFIL
   ========================================================= */

.profile-page{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.profile-back{
  display:flex;
  margin-bottom:2px;
}

.profile-hero{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
  padding:22px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 0 0,rgba(47,134,255,.18),transparent 46%),
    linear-gradient(135deg,rgba(37,99,235,.16),rgba(16,185,129,.07));
  box-shadow:0 18px 45px rgba(0,0,0,.24);
}

.profile-hero-avatar{
  width:82px;
  height:82px;
  display:grid;
  place-items:center;
  border-radius:22px;
  overflow:hidden;
  color:#fff;
  font-size:38px;
  background:linear-gradient(145deg,rgba(47,134,255,.92),rgba(30,64,175,.55));
  border:1px solid rgba(147,197,253,.38);
  box-shadow:0 16px 34px rgba(0,0,0,.34);
}

.profile-hero-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.profile-kicker{
  margin-bottom:5px;
  color:#7bb5ff;
  font-size:11px;
  font-weight:900;
  letter-spacing:.15em;
}

.profile-hero h1{
  margin:0 0 6px;
  color:#fff;
  font-size:30px;
}

.profile-hero p{
  margin:0;
  color:#b8c7dd;
}

.profile-role-card{
  min-width:180px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(16,185,129,.25);
  background:rgba(16,185,129,.08);
}

.profile-role-card span,
.profile-role-card small{
  display:block;
  color:#9adbb9;
  font-size:12px;
}

.profile-role-card strong{
  display:block;
  margin:5px 0;
  color:#c5ffe0;
  font-size:18px;
}

.profile-alert{
  margin:0;
}

.profile-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:16px;
  align-items:start;
}

.profile-card,
.profile-summary-card{
  margin:0;
}

.profile-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.profile-card-head h2{
  margin:0 0 4px;
  color:#fff;
  font-size:21px;
}

.profile-card-head p{
  margin:0;
  color:#b8c7dd;
  font-size:13px;
}

.profile-card-head>i{
  color:#7bb5ff;
  font-size:30px;
}

.profile-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px 14px;
}

.profile-field-full{
  grid-column:1 / -1;
}

.profile-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.profile-save-btn,
.profile-password-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.profile-summary-card{
  text-align:center;
  position:sticky;
  top:18px;
}

.profile-summary-avatar{
  width:105px;
  height:105px;
  display:grid;
  place-items:center;
  margin:0 auto 14px;
  border-radius:28px;
  overflow:hidden;
  color:#9cc9ff;
  font-size:64px;
  background:rgba(47,134,255,.10);
  border:1px solid rgba(47,134,255,.30);
}

.profile-summary-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.profile-summary-card h2{
  margin:0;
  color:#fff;
  font-size:21px;
}

.profile-summary-username{
  margin-top:5px;
  color:#7bb5ff;
  font-size:13px;
  font-weight:800;
}

.profile-summary-list{
  display:grid;
  gap:9px;
  margin-top:18px;
  text-align:left;
}

.profile-summary-list>div{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:12px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.07);
  color:#cfe3ff;
  font-size:13px;
  word-break:break-word;
}

.profile-summary-list i{
  color:#7bb5ff;
}

.profile-password-card{
  scroll-margin-top:18px;
}

.profile-password-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.profile-password-field{
  position:relative;
}

.profile-password-field input{
  padding-right:82px;
}

.profile-password-field button{
  position:absolute;
  top:50%;
  right:7px;
  transform:translateY(-50%);
  min-width:62px;
  height:34px;
  padding:0 10px;
  border-radius:9px;
  border:1px solid rgba(47,134,255,.40);
  background:rgba(47,134,255,.12);
  color:#dbeafe;
  cursor:pointer;
  font-size:12px;
  font-weight:800;
}

.profile-password-field button:hover{
  background:rgba(47,134,255,.22);
}

.profile-password-note{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:13px;
  padding:11px 12px;
  border-radius:12px;
  background:rgba(59,130,246,.08);
  border:1px solid rgba(59,130,246,.20);
  color:#bcd7ff;
  font-size:13px;
}

@media(max-width:980px){
  .profile-layout{
    grid-template-columns:1fr;
  }

  .profile-summary-card{
    position:static;
  }

  .profile-password-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:720px){
  .topbar{
    align-items:flex-start;
    gap:12px;
  }

  .topbar-right{
    margin-left:auto;
  }

  .user-menu-trigger{
    min-width:0;
  }

  .user-menu-copy,
  .user-menu-arrow{
    display:none;
  }

  .user-dropdown{
    right:0;
    width:min(280px,calc(100vw - 24px));
  }

  .profile-hero{
    grid-template-columns:1fr;
    text-align:center;
  }

  .profile-hero-avatar{
    margin:0 auto;
  }

  .profile-role-card{
    min-width:0;
  }

  .profile-form-grid{
    grid-template-columns:1fr;
  }

  .profile-field-full{
    grid-column:auto;
  }
}
