/* ============================================================
   ACCOUNT PAGE — WCL
   ============================================================ */

/* ============================================================
   PAGE LAYOUT
   ============================================================ */

.account-page{
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:36px;

  width:min(1480px, 100%);
  margin:0 auto;

  padding:
    38px
    clamp(22px,4vw,58px)
    64px;

  min-height:calc(100vh - 88px);
}

.account-signup-gate{
  grid-template-columns:minmax(0, 560px);
  justify-content:center;
  align-content:center;
}

.account-helper{
  margin:0 0 8px;
  color:rgba(255,255,255,0.66);
  line-height:1.45;
}

.account-signup-success{
  text-align:left;
}

.account-success-copy{
  max-width:38rem;
  font-size:15px;
}

.account-success-email{
  margin:18px 0 0;
  padding:14px 16px;

  border:1px solid rgba(var(--global),0.2);
  border-radius:14px;

  background:rgba(0,0,0,0.22);
  color:rgba(255,255,255,0.82);

  font-size:14px;
  font-weight:700;
  word-break:break-word;
}

.account-success-actions{
  align-items:center;
  flex-wrap:wrap;
}

.account-rules-check{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-top:4px;
  color:rgba(255,255,255,0.72);
  font-size:14px;
  line-height:1.45;
}

.account-rules-check input{
  margin-top:3px;
  accent-color:rgb(var(--global));
}

.account-secondary-link{
  display:inline-flex;
  align-items:center;
  color:rgba(255,255,255,0.62);
  font-weight:600;
  text-decoration:none;
}

.account-secondary-link:hover{
  color:rgb(var(--global));
}

.account-turnstile-wrap{
  margin:16px 0 4px;
}

.account-turnstile-wrap[hidden]{
  display:none;
}

.account-turnstile{
  min-height:65px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.account-sidebar{
  position:sticky;
  top:104px;

  height:fit-content;

  display:flex;
  flex-direction:column;
  gap:8px;

  padding:16px;

  border:1px solid rgba(214,179,106,0.14);
  border-radius:18px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.045),
      rgba(255,255,255,0.018)
    );

  backdrop-filter:blur(18px);

  box-shadow:
    0 10px 40px rgba(0,0,0,0.28);
}

.account-nav-btn{
  min-height:40px;

  display:flex;
  align-items:center;

  padding:0 14px;

  border:1px solid transparent;
  border-radius:999px;

  background:rgba(255,255,255,0.035);

  color:rgba(255,255,255,0.72);

  font-size:13px;
  font-weight:800;

  text-align:left;

  cursor:pointer;

  transition:
    background .18s ease,
    color .18s ease,
    transform .18s ease;
}

.account-nav-btn:hover{
  background:rgba(255,255,255,0.07);
  border-color:rgba(255,255,255,0.08);

  color:#fff;

  transform:translateX(2px);
}

.account-nav-btn.active{
  background:rgba(var(--global),0.18);

  color:rgb(var(--global));

  box-shadow:
    inset 0 0 0 1px rgba(var(--global),0.28),
    0 0 18px rgba(var(--global),0.08);
}

.account-nav-btn.danger{
  margin-top:10px;

  color:#ff8c8c;
}

/* ============================================================
   CONTENT
   ============================================================ */

.account-content{
  display:flex;
  flex-direction:column;
  gap:30px;
}

/* ============================================================
   CARD
   ============================================================ */

.account-card{
  padding:32px;

  border-radius:18px;

  border:1px solid rgba(255,255,255,0.06);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.05),
      rgba(255,255,255,0.025)
    );

  backdrop-filter:blur(18px);

  box-shadow:
    0 12px 40px rgba(0,0,0,0.24);
}

.account-card.danger{
  border-color:rgba(169,54,54,0.24);
}

.account-card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;

  margin-bottom:22px;
}

.account-card-header h2{
  margin:0;

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

  color:#fff;

  letter-spacing:-0.02em;
}

.account-settings-card{
  width:min(1080px, 100%);
  padding:34px;
}

.account-settings-card .account-card-header{
  margin-bottom:24px;
  padding-bottom:20px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}

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

  border-radius:16px;
  border:1px solid rgba(255,255,255,0.08);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.035),
      rgba(255,255,255,0.018)
    );
}

.account-settings-section:first-of-type{
  margin-top:0;
}

.account-settings-section-danger{
  border-color:rgba(169,54,54,0.22);
}

.account-settings-section h3{
  margin:0 0 18px;

  color:rgb(var(--global));

  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:0;
}

.account-settings-fields{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

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

.account-settings-section .account-actions,
.account-settings-section .account-danger-actions{
  margin-top:18px;
}

.account-settings-section .account-btn{
  min-width:150px;
}

.account-settings-section-danger .account-btn{
  min-width:118px;
}

.account-settings-section-danger .account-btn.danger{
  min-width:170px;
}

/* ============================================================
   FIELDS
   ============================================================ */

.account-field{
  display:flex;
  flex-direction:column;
  gap:10px;

  margin-bottom:18px;
}

.account-label{
  font-size:13px;
  font-weight:700;

  letter-spacing:.04em;
  text-transform:uppercase;

  color:rgba(255,255,255,0.58);
}

.account-input{
  width:100%;

  height:48px;

  padding:0 16px;

  border-radius:12px;
  border:1px solid rgba(255,255,255,0.08);

  background:rgba(255,255,255,0.04);

  color:#fff;

  font-size:15px;
  font-family:inherit;

  outline:none;

  transition:
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.account-input:focus{
  border-color:rgba(var(--global),0.65);

  box-shadow:
    0 0 0 3px rgba(var(--global),0.14);
}

.account-input:disabled{
  opacity:.6;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.account-actions,
.account-danger-actions{
  display:flex;
  gap:12px;

  margin-top:26px;
}

.account-btn{
  min-height:44px;

  padding:0 18px;

  border:none;
  border-radius:999px;

  background:rgb(var(--global));

  color:#111;

  font-size:13px;
  font-weight:900;

  cursor:pointer;

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

.account-btn-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.account-secondary-button{
  min-height:44px;
  padding:0 2px;

  border:0;
  background:transparent;

  color:rgba(255,255,255,0.68);

  font-size:13px;
  font-weight:800;

  cursor:pointer;
}

.account-secondary-button:hover{
  color:rgb(var(--global));
}

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

  box-shadow:
    0 0 24px rgba(var(--global),0.34);
}

.account-btn.danger{
  background:#a93636;
  color:#fff;
}

.account-btn.danger:hover{
  box-shadow:
    0 0 24px rgba(169,54,54,0.34);
}

/* ============================================================
   COMMENTS / RATINGS
   ============================================================ */

.account-comments-list,
.account-ratings-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}

/* ============================================================
   SEARCH
   ============================================================ */

.account-search{
  width:min(320px, 100%);

  height:44px;

  padding:0 16px;

  border-radius:999px;

  border:1px solid rgba(var(--global),0.22);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.05),
      rgba(255,255,255,0.025)
    );

  color:#fff;

  font-size:14px;
  font-family:inherit;

  outline:none;

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.account-search::placeholder{
  color:rgba(255,255,255,0.4);
}

.account-search:focus{
  border-color:rgba(var(--global),0.58);

  box-shadow:
    0 0 0 1px rgba(var(--global),0.12),
    0 0 24px rgba(var(--global),0.12);
}


/* ============================================================
   COMMENT / RATING ITEM
   ============================================================ */

.account-comment-item,
.account-rating-item{
  padding:22px;

  border-radius:16px;

  border:1px solid rgba(var(--global),0.16);

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.035),
      rgba(255,255,255,0.018)
    );

  cursor:pointer;

  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.account-comment-item:hover,
.account-rating-item:hover{
  transform:translateY(-2px);

  border-color:rgba(var(--global),0.34);

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.05),
      rgba(255,255,255,0.025)
    );

  box-shadow:
    0 10px 34px rgba(0,0,0,0.24),
    0 0 28px rgba(var(--global),0.08);
}

.account-comment-top,
.account-rating-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;

  margin-bottom:14px;
}

.account-comment-store,
.account-rating-store{
  font-size:16px;
  font-weight:700;

  color:#fff;
}

.account-comment-location,
.account-rating-location{
  margin-top:4px;

  font-size:13px;

  color:rgba(255,255,255,0.52);
}

.account-comment-date,
.account-rating-date{
  flex-shrink:0;

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

  color:rgba(255,255,255,0.45);
}

.account-comment-text{
  font-size:15px;
  line-height:1.7;

  color:rgba(255,255,255,0.82);
}

.account-rating-stars{
  margin-top:14px;

  font-size:22px;
  letter-spacing:3px;

  color:rgb(var(--global));

  text-shadow:
    0 0 18px rgba(var(--global),0.28);
}

/* ============================================================
   EMPTY
   ============================================================ */

.account-empty{
  padding:28px;

  border-radius:16px;

  border:1px dashed rgba(255,255,255,0.08);

  text-align:center;

  font-size:14px;

  color:rgba(255,255,255,0.5);
}

/* ============================================================
   MESSAGE
   ============================================================ */

.account-message{
  min-height:22px;

  padding:0 4px;

  font-size:14px;
  line-height:1.6;

  color:rgba(255,255,255,0.72);
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 980px){

  .account-page{
    grid-template-columns:1fr;

    gap:22px;
    padding:24px 18px 44px;
  }

  .account-sidebar{
    position:relative;
    top:auto;

    flex-direction:row;
    gap:8px;

    padding:10px;

    overflow-x:auto;
    border-radius:16px;
  }

  .account-nav-btn{
    flex:0 0 auto;
    white-space:nowrap;
  }

  .account-settings-card{
    width:100%;
  }

  .account-settings-fields{
    grid-template-columns:1fr;
  }

}

@media (max-width: 640px){

  .account-card{
    padding:20px;
    border-radius:16px;
  }

  .account-settings-card{
    padding:20px;
  }

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

  .account-card-header{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }

  .account-actions,
  .account-danger-actions{
    flex-direction:column;
  }

  .account-btn{
    width:100%;
  }

  .account-comment-top,
  .account-rating-top{
    flex-direction:column;
  }

}

/* ============================================================
   ACCOUNT TOPBAR
   ============================================================ */

.account-topbar{
  position:sticky;
  top:0;
  z-index:50;

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

  padding:
    12px
    clamp(22px,4vw,58px);

  min-height:86px;

  background:#050505;

  border-bottom:
    1px solid rgba(214,179,106,0.16);
}

.account-brand{
  width:170px;
  height:72px;

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

  overflow:hidden;

  text-decoration:none;
}

.account-brand img{
  width:100%;
  height:100%;

  display:block;

  object-fit:cover;
}

.account-back-btn{
  height:40px;

  padding:0 16px;

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

  border-radius:999px;

  background:rgba(214,179,106,0.10);

  border:1px solid rgba(214,179,106,0.42);

  color:var(--gold);

  font-size:13px;
  font-weight:800;

  text-decoration:none;

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

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

  background:rgba(214,179,106,0.16);

  border-color:rgba(214,179,106,0.68);

  color:#fff1c2;
}

/* ============================================================
   MOBILE TOPBAR
   ============================================================ */

@media (max-width: 640px){

  .account-topbar{
    min-height:76px;
    padding:10px 18px;
  }

  .account-brand{
    width:146px;
    height:62px;
  }

  .account-back-btn{
    height:38px;

    padding:0 14px;

    font-size:13px;
  }

}

.account-page{
  align-items:start;
}

.account-content{
  min-height:calc(100vh - 120px);
}

.account-nav-btn{
  scroll-margin-top:0;
}

.account-nav-btn:focus{
  outline:none;
}

.account-nav-btn[hidden],
.account-future-module{
  display:none !important;
}

/* ============================================================
   FAVORITES
   ============================================================ */

.account-favorites-grid{
  display:flex;
  flex-direction:column;
  gap:18px;
}

/* ============================================================
   FAVORITE CARD
   ============================================================ */

.account-favorite-card{
  overflow:hidden;

  border-radius:28px;

  border:1px solid rgba(var(--global),0.16);

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.035),
      rgba(255,255,255,0.018)
    );

  cursor:pointer;

  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.account-favorite-card:hover{
  transform:translateY(-2px);

  border-color:rgba(var(--global),0.34);

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.05),
      rgba(255,255,255,0.025)
    );

  box-shadow:
    0 10px 34px rgba(0,0,0,0.24),
    0 0 28px rgba(var(--global),0.08);
}

/* ============================================================
   FAVORITE IMAGE
   ============================================================ */

.account-favorite-img{
  width:100%;
  height:320px;

  display:block;

  object-fit:cover;

  background:#111;
}

/* ============================================================
   FAVORITE BODY
   ============================================================ */

.account-favorite-body{
  padding:22px;
}

.account-favorite-title{
  font-size:22px;
  font-weight:700;

  color:#fff;
}

.account-favorite-location{
  margin-top:6px;

  font-size:15px;

  color:rgba(255,255,255,0.58);
}

/* ============================================================
   ACCOUNT MODAL FLAG FIX
   ============================================================ */

#storeModal .modal-location .flag{
  width:22px;
  height:16px;

  object-fit:cover;

  border-radius:3px;

  flex-shrink:0;

  display:block;
}

/* ============================================================
   ACCOUNT LANGUAGE
============================================================ */

.account-language-list{
  display:flex;
  flex-wrap:wrap;
  gap:12px;

  margin-top:18px;
}

.account-language-btn{

  appearance:none;
  border:none;
  outline:none;
  cursor:pointer;

  padding:10px 16px;

  border-radius:999px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.03)
    );

  border:1px solid rgba(255,255,255,0.08);

  color:rgba(255,255,255,0.88);

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

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;

  backdrop-filter:blur(10px);
}

.account-language-btn:hover{

  transform:translateY(-1px);

  border-color:
    rgba(205,127,50,0.55);

  background:
    linear-gradient(
      180deg,
      rgba(205,127,50,0.16),
      rgba(205,127,50,0.08)
    );

  box-shadow:
    0 0 18px rgba(205,127,50,0.14);
}

.account-language-btn:active{
  transform:scale(0.98);
}

.account-language-btn.active{

  border-color:
    rgba(205,127,50,0.85);

  background:
    linear-gradient(
      180deg,
      rgba(205,127,50,0.22),
      rgba(205,127,50,0.12)
    );

  color:#fff;

  box-shadow:
    0 0 22px rgba(205,127,50,0.22);
}
