*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:"Inter","Noto Sans JP",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  background:#f4f4f8;
  color:#0a1533;
}

button,input,textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

.hidden{
  display:none !important;
}

/* LOGIN */
.login-page{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:40px;
  background:radial-gradient(circle at 30% 10%,rgba(125,87,255,.12),transparent 30%),#f4f4f8;
}

.login-card{
  width:420px;
  background:white;
  border-radius:36px;
  padding:42px;
  box-shadow:0 24px 80px rgba(10,21,51,.12);
}

.login-mark{
  width:44px;
  height:44px;
  border-radius:14px;
  background:#ede6ff;
  color:#6f3cff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  margin-bottom:22px;
}

.eyebrow{
  font-size:12px;
  letter-spacing:4px;
  color:#7180a0;
  margin-bottom:14px;
  font-weight:800;
}

.login-card h1{
  font-size:48px;
  margin-bottom:10px;
  letter-spacing:.03em;
}

.login-lead{
  color:#6f7892;
  margin-bottom:28px;
  font-weight:600;
}

.login-card label,.settings-card label{
  display:block;
  font-size:14px;
  margin-bottom:10px;
  margin-top:18px;
  font-weight:800;
}

.login-card input,.settings-input,.settings-textarea{
  width:100%;
  border:none;
  border-radius:18px;
  background:#f2f5fc;
  padding:0 18px;
  font-size:15px;
  outline:none;
}

.login-card input,.settings-input{
  height:56px;
}

.settings-textarea{
  min-height:140px;
  padding:16px 18px;
  resize:vertical;
}

.login-card input:focus,.settings-input:focus,.settings-textarea:focus{
  box-shadow:0 0 0 4px rgba(125,87,255,.13);
}

.primary-btn,.dark-btn,.save-btn{
  width:100%;
  height:58px;
  border:none;
  border-radius:18px;
  color:white;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
}

.primary-btn{
  margin-top:28px;
  background:linear-gradient(90deg,#7d57ff,#6a35ff);
}

.dark-btn{
  margin-top:14px;
  background:#091634;
}

.link-btn{
  width:100%;
  background:none;
  border:none;
  color:#7d57ff;
  margin-top:20px;
  cursor:pointer;
  font-weight:800;
}

.auth-message,.save-message{
  min-height:20px;
  margin-top:18px;
  font-size:14px;
  color:#ff4d67;
}

/* MEMBER */
.topbar{
  height:80px;
  background:white;
  border-bottom:1px solid #e7e9f2;
  padding:0 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:sticky;
  top:0;
  z-index:20;
}

.top-logo{
  border:0;
  background:transparent;
  text-align:left;
}

.top-logo h2{
  font-size:24px;
  letter-spacing:5px;
}

.top-logo p{
  font-size:12px;
  letter-spacing:2px;
  color:#7b88a8;
  margin-top:4px;
}

.top-actions{
  display:flex;
  align-items:center;
  gap:14px;
}

.notify{
  position:relative;
  width:52px;
  height:52px;
  border-radius:18px;
  background:white;
  border:1px solid #e8eaf3;
  display:flex;
  justify-content:center;
  align-items:center;
  box-shadow:0 8px 24px rgba(10,21,51,.06);
}

.notify span{
  position:absolute;
  right:-6px;
  top:-8px;
  min-width:22px;
  height:22px;
  padding:0 6px;
  background:#ec4899;
  color:white;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
}

.mypage-mini{
  background:white;
  border:1px solid #e8eaf3;
  border-radius:18px;
  padding:10px 18px;
  box-shadow:0 8px 24px rgba(10,21,51,.06);
}

.mypage-mini span{
  display:block;
  font-size:13px;
  font-weight:800;
}

.mypage-mini strong{
  font-size:14px;
}

.logout-btn{
  height:52px;
  padding:0 26px;
  border:none;
  border-radius:18px;
  background:#091634;
  color:white;
  font-weight:800;
}

.dashboard{
  display:grid;
  grid-template-columns:250px 1fr 290px;
  gap:24px;
  padding:24px;
}

/* LEFT */
.left-menu{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.menu-logo,.nav-card,.settings-card,.status-panel{
  background:white;
  border-radius:28px;
  box-shadow:0 12px 32px rgba(10,21,51,.06);
}

.menu-logo{
  padding:28px;
}

.menu-logo h2{
  font-size:28px;
  line-height:1.05;
  letter-spacing:4px;
}

.menu-logo p{
  margin-top:14px;
  color:#7381a3;
  letter-spacing:2px;
  font-weight:700;
}

.nav-card{
  border:1px solid transparent;
  padding:26px;
  text-align:left;
  transition:.2s ease;
}

.nav-card.active,.nav-card:hover{
  border:1px solid #bfa8ff;
  transform:translateY(-2px);
}

.nav-card strong{
  display:block;
  font-size:20px;
  margin-bottom:8px;
}

.nav-card span{
  color:#7d88a5;
  font-weight:700;
}

/* CENTER */
.main-content{
  min-width:0;
}

.screen-panel{
  display:none;
}

.active-panel{
  display:block;
}

.member-card{
  background:radial-gradient(circle at 20% 0%,rgba(125,87,255,.25),transparent 30%),linear-gradient(90deg,#08102d,#021338 70%,#0d4369);
  border-radius:42px;
  min-height:700px;
  padding:44px;
  display:flex;
  justify-content:space-between;
  position:relative;
  overflow:hidden;
  box-shadow:0 24px 70px rgba(4,10,30,.18);
}

.card-grid{
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:24px 24px;
}

.card-glow{
  position:absolute;
  width:380px;
  height:380px;
  border-radius:50%;
  filter:blur(80px);
  opacity:.18;
}

.card-glow-1{
  left:-150px;
  top:-150px;
  background:#8b5cf6;
}

.card-glow-2{
  right:-150px;
  bottom:-140px;
  background:#0ea5e9;
}

.member-left,.member-right{
  position:relative;
  z-index:2;
}

.member-left h1{
  font-size:84px;
  line-height:.95;
  color:white;
  margin-top:34px;
  margin-bottom:50px;
}

.member-name{
  font-size:42px;
  color:white;
  margin-bottom:36px;
  font-weight:800;
  text-shadow:3px 3px 0 rgba(0,0,0,.2);
}

.small-title{
  color:#d3d9ff;
  letter-spacing:6px;
  font-size:14px;
  font-weight:800;
}

.big-number{
  font-size:92px;
  color:white;
  font-weight:900;
  line-height:1;
  margin-top:12px;
  letter-spacing:.08em;
}

.since{
  margin-top:28px;
  color:white;
  letter-spacing:4px;
  font-size:18px;
  font-weight:800;
}

.fan-id{
  margin-top:44px;
  color:white;
  letter-spacing:6px;
  font-weight:800;
}

.member-right{
  width:340px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.avatar-ring{
  width:280px;
  height:280px;
  border-radius:50%;
  background:radial-gradient(rgba(255,255,255,.08),transparent 70%);
  display:flex;
  align-items:center;
  justify-content:center;
}

.avatar-ring img{
  width:240px;
  height:240px;
  border-radius:50%;
  object-fit:cover;
  border:6px solid rgba(255,255,255,.9);
}

.status-chip{
  margin-top:24px;
  width:220px;
  height:72px;
  border-radius:40px;
  border:1px solid rgba(255,255,255,.35);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:800;
  background:rgba(255,255,255,.04);
}

.status-chip.dark{
  background:rgba(83,131,177,.18);
}

/* PANELS */
.settings-card{
  padding:36px;
  margin-bottom:24px;
}

.admin-card{
  border:2px solid #c4b5fd;
  background:#fbfaff;
}

.settings-card h3{
  font-size:32px;
  margin-bottom:10px;
}

.muted{
  color:#7f8ca9;
  margin-bottom:28px;
  font-weight:700;
}

.profile-grid,.status-summary,.rank-list,.sns-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.status-summary{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.profile-info-card,.status-summary div,.rank-list div,.sns-card,.notice-card{
  background:#f7f8fc;
  border:1px solid #e8eaf3;
  border-radius:20px;
  padding:18px;
}

.profile-info-card span,.status-summary span,.rank-list span{
  display:block;
  color:#7f8ca9;
  font-size:13px;
  font-weight:800;
}

.profile-info-card strong,.status-summary strong,.rank-list strong{
  display:block;
  margin-top:7px;
  font-weight:900;
}

.profile-upload{
  margin-top:24px;
}

.profile-upload input{
  width:100%;
  background:#f2f5fc;
  padding:14px;
  border-radius:18px;
}

.upload-note{
  color:#7f8ca9;
  margin-top:8px;
  font-size:13px;
}

.save-btn{
  margin-top:30px;
  background:#6f3cff;
}

.progress-wrap{
  margin-top:26px;
}

.progress-head{
  display:flex;
  justify-content:space-between;
  color:#7f8ca9;
  font-weight:900;
  margin-bottom:10px;
}

.progress-bar{
  height:14px;
  border-radius:999px;
  background:#e8eaf3;
  overflow:hidden;
}

.progress-fill{
  width:0%;
  height:100%;
  background:linear-gradient(90deg,#ec4899,#7d57ff);
  border-radius:999px;
}

.rank-list{
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:24px;
}

.notice-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.notice-count{
  background:#ede6ff;
  color:#6f3cff;
  border-radius:999px;
  padding:8px 14px;
  font-weight:900;
}

.notice-card{
  margin-top:14px;
}

.notice-card.important{
  border-color:#c4b5fd;
  background:#fbfaff;
}

.notice-label{
  display:inline-flex;
  background:#0a1533;
  color:white;
  border-radius:999px;
  padding:5px 10px;
  font-size:12px;
  font-weight:900;
  margin-bottom:10px;
}

.notice-card h4{
  font-size:20px;
  margin-bottom:8px;
}

.notice-card p{
  color:#64748b;
  line-height:1.7;
  white-space:pre-wrap;
}

.notice-card small{
  display:block;
  margin-top:10px;
  color:#94a3b8;
  font-weight:800;
}

.sns-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.sns-card{
  font-weight:900;
}

/* RIGHT */
.status-panel{
  padding:34px;
  height:fit-content;
}

.status-panel h2{
  font-size:56px;
  margin-bottom:40px;
}

.status-block{
  border-top:1px solid #eceef5;
  padding:26px 0;
}

.status-block:first-of-type{
  border-top:none;
  padding-top:0;
}

.status-block p{
  color:#7e8ba9;
  margin-bottom:14px;
  font-weight:800;
}

.status-block h3{
  font-size:44px;
  margin-bottom:14px;
}

.status-block span{
  display:inline-flex;
  padding:8px 16px;
  border-radius:999px;
  background:#efe7ff;
  color:#6f3cff;
  font-weight:900;
}

.outline-btn{
  width:100%;
  height:62px;
  border-radius:999px;
  border:2px solid #bfa8ff;
  background:white;
  color:#6f3cff;
  font-size:20px;
  font-weight:900;
}

@media(max-width:1400px){
  .dashboard{
    grid-template-columns:1fr;
  }
}

@media(max-width:900px){
  .topbar{
    padding:0 14px;
  }

  .top-logo h2{
    font-size:20px;
  }

  .mypage-mini,.logout-btn{
    display:none;
  }

  .dashboard{
    padding:14px;
  }

  .member-card{
    flex-direction:column;
    gap:40px;
    min-height:auto;
  }

  .member-left h1{
    font-size:52px;
  }

  .big-number{
    font-size:58px;
  }

  .member-right{
    width:100%;
  }

  .profile-grid,.status-summary,.rank-list,.sns-grid{
    grid-template-columns:1fr;
  }
}
