.front-brand.linkish {
  text-decoration: none;
  color: inherit;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-link {
  color: #ffe8e4;
  text-decoration: none;
  border: 1px solid rgba(255, 200, 190, 0.35);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255,255,255,0.06);
}

.user-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.user-loading {
  text-align: center;
  padding: 48px 16px;
  color: rgba(255,230,226,0.75);
}

.user-card, .vip-section {
  background: var(--card);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.user-card h2, .vip-section h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.profile-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #ef5350, #b71c1c);
  font-size: 20px;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-meta .name {
  font-size: 20px;
  font-weight: 650;
}

.profile-meta .sub {
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #fdecea;
  color: #b71c1c;
}

.badge.vip {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #e65100;
}

.vip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  position: relative;
}

.plan-card.current {
  border-color: #ef9a9a;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.15);
}

.plan-card .tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
}

.plan-card h3 {
  margin: 0;
  font-size: 16px;
}

.plan-price {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.plan-price span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 2px;
}

.plan-days {
  font-size: 12px;
  color: var(--muted);
}

.plan-features {
  margin: 0;
  padding-left: 18px;
  color: #4a3333;
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}

.btn-upgrade {
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  background: linear-gradient(135deg, #e53935, #b71c1c);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn-upgrade:disabled {
  opacity: 0.55;
  cursor: default;
  background: #b0a4a0;
}

.btn-outline {
  border: 1px solid #e8c4c4;
  background: #fff;
  color: #7a3a3a;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
}

.guest-box {
  text-align: center;
  padding: 36px 16px;
}

.guest-box p {
  color: var(--muted);
  margin: 0 0 16px;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 8, 0.55);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 16px;
}

.modal-mask[hidden] { display: none; }

.modal-card {
  width: min(420px, 100%);
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
}

.modal-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.modal-tabs .tab {
  border: 0;
  background: transparent;
  font: inherit;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
}

.modal-tabs .tab.active {
  background: #fdecea;
  color: #b71c1c;
  font-weight: 600;
}

.modal-x {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form[hidden] {
  display: none !important;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #5a3a3a;
}

.auth-form input {
  border: 1px solid #e8c4c4;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

.btn-primary {
  border: 0;
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(135deg, #e53935, #b71c1c);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
}

.auth-msg {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 13px;
  color: #c62828;
}

.user-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffe8e4;
  border: 1px solid rgba(255, 200, 190, 0.35);
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255,255,255,0.08);
}

.user-entry .mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ef5350, #b71c1c);
  font-size: 12px;
  font-weight: 700;
}

.user-entry .vip-dot {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.25);
  color: #ffecb3;
}

@media (max-width: 900px) {
  .vip-grid { grid-template-columns: 1fr; }
}
