:root {
  --bg: #09101b;
  --panel: #121c2c;
  --panel-2: #19253a;
  --line: rgba(255,255,255,0.08);
  --text: #eef2ff;
  --muted: #9ca8c3;
  --accent: #7a6bff;
  --accent-2: #ff62b0;
  --danger: #ff6b81;
  --success: #47c28b;
  --warning: #ffcf6e;
  --gold-1: #f6d36f;
  --gold-2: #9b6b10;
  --rose-1: #f8bdd9;
  --rose-2: #d974a8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(122,107,255,.18), transparent 30%),
    radial-gradient(circle at top right, rgba(255,98,176,.12), transparent 20%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; }

.page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: min(100%, 460px);
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(23,31,49,.97), rgba(14,21,35,.98));
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px rgba(0,0,0,.34);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.card h1 {
  margin: 18px 0 10px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
}

.lead { color: var(--muted); line-height: 1.7; margin: 0 0 18px; }

.alert {
  border-radius: 18px;
  padding: 14px 16px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid transparent;
}

.alert.error {
  background: rgba(255, 107, 129, .12);
  border-color: rgba(255, 107, 129, .28);
  color: #ffd9df;
}

.alert.success {
  background: rgba(71, 194, 139, .14);
  border-color: rgba(71, 194, 139, .28);
  color: #dffbee;
}

.form-grid { display: grid; gap: 16px; }

.field label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.input {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: #161f31;
  color: var(--text);
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}

.input:focus {
  border-color: rgba(255,98,176,.45);
  box-shadow: 0 0 0 4px rgba(255,98,176,.12);
}

.btn {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 18px 30px rgba(122,107,255,.18);
}

.btn.secondary {
  background: #202a40;
  box-shadow: none;
}

.links-row {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.link {
  color: #c7d4ff;
  text-decoration: none;
}

.link:hover { text-decoration: underline; }

.profile-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 18px 50px;
}

.profile-header {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(18,27,43,.96), rgba(10,16,27,.98));
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}

.cover-bar {
  height: 180px;
  background: linear-gradient(135deg, rgba(118,114,255,.95), rgba(255,87,170,.9));
}

.profile-content {
  position: relative;
  padding: 0 22px 28px;
}

.avatar-wrap {
  width: 160px;
  height: 160px;
  margin: -76px auto 12px;
  border-radius: 50%;
  background: radial-gradient(circle at top, #dce1ea, #b8c0cd 70%, #8f98a6 100%);
  border: 8px solid #101827;
  box-shadow: 0 10px 28px rgba(0,0,0,.34);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.profile-name {
  text-align: center;
  margin: 0;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.05;
}

.profile-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: #f5f6fb;
  font-weight: 800;
}

.muted-text {
  color: var(--muted);
  font-size: 15px;
}

.profile-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(26,38,60,.94), rgba(20,31,50,.96));
  border: 1px solid rgba(255,255,255,.08);
  min-height: 130px;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.stat-value {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 900;
}

.action-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.name-style-admin_gold {
  background: linear-gradient(135deg, #fff6cf, var(--gold-1), #f8a60d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(246, 211, 111, .18);
}

.name-style-mademoiselle_rose {
  background: linear-gradient(135deg, #fff5fb, var(--rose-1), var(--rose-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(217, 116, 168, .18);
}

.badge-admin-gold {
  background: linear-gradient(135deg, #6f5111, #e7c66b, #fff4cf);
  color: #1f1400;
  box-shadow: 0 0 22px rgba(231,198,107,.28);
}

.badge-mademoiselle-rose {
  background: linear-gradient(135deg, #ffd7ec, #e9a6cd, #b76ea1);
  color: #3d112b;
  box-shadow: 0 0 22px rgba(233,166,205,.22);
}

.vip_fx_01,
.vip_fx_02,
.vip_fx_03,
.vip_fx_04,
.vip_fx_05,
.vip_fx_06,
.vip_fx_07,
.vip_fx_08,
.vip_fx_09,
.vip_fx_10 {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.vip_fx_01 { background-image: linear-gradient(135deg, #c7d2ff, #8c7dff); }
.vip_fx_02 { background-image: linear-gradient(135deg, #ffd0ea, #ff73bb); }
.vip_fx_03 { background-image: linear-gradient(135deg, #d9f2ff, #5ab8ff); }
.vip_fx_04 { background-image: linear-gradient(135deg, #fff0b8, #ffc553); }
.vip_fx_05 { background-image: linear-gradient(135deg, #d4ffd6, #5edd90); }
.vip_fx_06 { background-image: linear-gradient(135deg, #ffd8d8, #ff7d7d); }
.vip_fx_07 { background-image: linear-gradient(135deg, #f1d4ff, #bf74ff); }
.vip_fx_08 { background-image: linear-gradient(135deg, #bff9ff, #45d8ff); }
.vip_fx_09 { background-image: linear-gradient(135deg, #ffe0bc, #ff9861); }
.vip_fx_10 { background-image: linear-gradient(135deg, #f8f5ff, #bca8ff); }

@media (max-width: 640px) {
  .card { padding: 22px; border-radius: 24px; }
  .profile-grid { grid-template-columns: 1fr; }
  .cover-bar { height: 150px; }
  .avatar-wrap { width: 136px; height: 136px; margin-top: -64px; }
}

.password-wrap{
  position: relative;
}

.password-wrap .input{
  padding-right: 58px;
}

.toggle-password{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.toggle-password:hover{
  background: rgba(255,255,255,.14);
}

.toggle-password:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,98,176,.16);
}