/* ==========================================
   アカウント設定モーダル
========================================== */

.account-settings-modal {
  position: fixed;
  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;

  box-sizing: border-box;

  background: rgba(6, 4, 16, .72);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  z-index: 2147483646;
}


/* ==========================================
   モーダル本体
========================================== */

.account-settings-modal-inner {
  position: relative;

  width: min(94vw, 620px);
  max-height: 88vh;

  overflow-y: auto;

  padding: 36px 28px 32px;

  box-sizing: border-box;

  border:
    1px solid rgba(212,175,55,.48);

  border-radius: 20px;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(126,88,190,.28),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      rgba(25,17,48,.98),
      rgba(9,7,21,.98)
    );

  color: #fff;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 25px 70px rgba(0,0,0,.55);
}


/* ==========================================
   上部タイトル
========================================== */

.account-settings-modal-inner > .section-label {
  margin-bottom: 7px;

  text-align: center;
}


.account-settings-modal-title {
  margin: 0 0 28px;

  color: #f7d774;

  font-size: 22px;
  font-weight: 600;

  letter-spacing: .08em;

  text-align: center;
}


/* ==========================================
   閉じるボタン
========================================== */

.account-settings-modal-close {
  position: absolute;

  top: 12px;
  right: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  margin: 0;
  padding: 0;

  border:
    1px solid rgba(212,175,55,.45);

  border-radius: 50%;

  background:
    rgba(255,255,255,.06);

  color: #fff;

  font-size: 20px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  transition:
    background .2s ease,
    border-color .2s ease;
}


.account-settings-modal-close:hover {
  background:
    rgba(247,215,116,.10);

  border-color:
    rgba(247,215,116,.70);
}


/* ==========================================
   各設定
========================================== */

.account-settings-section {
  margin-bottom: 16px;
  padding: 20px;

  border:
    1px solid rgba(212,175,55,.16);

  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(35,24,58,.55),
      rgba(15,11,29,.62)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04);

  text-align: center;
}


.account-settings-section:last-child {
  margin-bottom: 0;
}


/* ==========================================
   小見出し
========================================== */

.account-settings-section-label {
  margin: 0 0 5px;

  color: rgba(247,215,116,.58);

  font-size: 9px;
  font-weight: 600;

  letter-spacing: .20em;

  text-transform: uppercase;
}


.account-settings-section h4 {
  margin: 0 0 16px;

  color: #f3d98b;

  font-size: 16px;
  font-weight: 600;

  letter-spacing: .04em;
}


/* ==========================================
   設定を開くボタン
========================================== */

.account-settings-action-btn {
  width: 100%;

  padding: 11px 16px;

  border:
    1px solid rgba(247,215,116,.40);

  border-radius: 999px;

  background:
    rgba(247,215,116,.07);

  color: #f7d774;

  font-size: 12px;
  font-weight: 600;

  letter-spacing: .05em;

  cursor: pointer;

  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease;
}


.account-settings-action-btn:hover {
  transform: translateY(-1px);

  border-color:
    rgba(247,215,116,.65);

  background:
    rgba(247,215,116,.11);
}


/* ==========================================
   入力フォーム
========================================== */

.account-settings-form {
  margin-top: 18px;
  padding-top: 18px;

  border-top:
    1px solid rgba(255,255,255,.08);

  text-align: left;
}


.account-settings-form label {
  display: block;

  margin-bottom: 15px;

  color: rgba(255,255,255,.76);

  font-size: 12px;
  font-weight: 500;
}


/* ==========================================
   Input
========================================== */

.account-settings-form input {
  width: 100%;

  margin-top: 6px;
  padding: 11px 12px;

  box-sizing: border-box;

  border:
    1px solid rgba(212,175,55,.25);

  border-radius: 9px;

  background:
    rgba(255,255,255,.07);

  color: #fff;

  font-size: 13px;

  outline: none;
}


.account-settings-form input:focus {
  border-color:
    rgba(247,215,116,.65);

  box-shadow:
    0 0 0 2px rgba(247,215,116,.06);
}


/* ==========================================
   実行ボタン
========================================== */

.account-settings-submit-btn {
  width: 100%;

  margin-top: 5px;
  padding: 12px 16px;

  border:
    1px solid rgba(247,215,116,.55);

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      rgba(111,75,158,.92),
      rgba(33,23,53,.96)
    );

  color: #fff3bd;

  font-size: 12px;
  font-weight: 600;

  letter-spacing: .05em;

  cursor: pointer;

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}


.account-settings-submit-btn:hover {
  transform: translateY(-1px);

  box-shadow:
    0 0 18px rgba(247,215,116,.12);
}


/* ==========================================
   メッセージ
========================================== */

.account-settings-message {
  margin: 12px 0 0;

  color: rgba(255,255,255,.78);

  font-size: 12px;

  line-height: 1.7;

  text-align: center;
}


/* ==========================================
   通知設定 説明
========================================== */

.account-settings-note {
  margin: 12px 4px 0;

  color: rgba(255,255,255,.58);

  font-size: 11px;

  line-height: 1.7;
}


/* ==========================================
   スマホ
========================================== */

@media (max-width: 768px) {

  .account-settings-modal {
    padding: 12px;
  }


  .account-settings-modal-inner {
    width: 100%;
    max-height: 90vh;

    padding:
      34px
      14px
      22px;

    border-radius: 16px;
  }


  .account-settings-modal-title {
    margin-bottom: 22px;

    font-size: 19px;
  }


  .account-settings-section {
    padding:
      18px
      14px;
  }

}
/* ==========================================
   現在のメールアドレス
========================================== */

.account-current-email {
  margin-bottom: 20px;
  padding: 14px 12px;

  border:
    1px solid rgba(212,175,55,.15);

  border-radius: 10px;

  background:
    rgba(255,255,255,.04);

  text-align: center;
}


.account-current-email-label {
  margin: 0 0 6px;

  color: rgba(255,255,255,.55);

  font-size: 11px;
}


.account-current-email-value {
  margin: 0;

  color: #f7e9bd;

  font-size: 14px;
  font-weight: 600;

  word-break: break-all;
}
/* ==========================================
   通知設定
========================================== */

.notification-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 16px;

  border:
    1px solid rgba(212,175,55,.15);

  border-radius: 12px;

  background:
    rgba(255,255,255,.035);

  text-align: left;
}


/* ==========================================
   アカウント設定
   パスワード表示切替
========================================== */

/* 入力欄とアイコンの共通コンテナ */
.account-settings-form .account-password-field {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 6px;
}

/* パスワード入力欄 */
.account-settings-form .account-password-field input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 58px 11px 12px;
  box-sizing: border-box;
}

/* 目のボタン */
.account-settings-form .account-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  min-height: 0;
  margin: 0;
  padding: 0;

  background: transparent;
  border: none;
  border-radius: 8px;
  box-shadow: none;

  color: #aaa;
  cursor: pointer;
}

/* ホバー */
.account-settings-form .account-password-toggle:hover {
  background: transparent;
  border: none;
  color: #f7d774;
  box-shadow: none;
}

/* フォーカス */
.account-settings-form .account-password-toggle:focus-visible {
  outline: 2px solid #f7d774;
  outline-offset: 2px;
}

/* SVGアイコン */
.account-settings-form .account-password-eye {
  display: block;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  flex-shrink: 0;
  pointer-events: none;
}
