.account-shell { min-height: 100vh; background: radial-gradient(circle at 82% 14%, var(--home-accent-soft), transparent 30rem), var(--home-bg); }
[hidden] { display: none !important; }
.account-header { border-bottom: 1px solid var(--home-border); }
.account-back { margin-left: auto; display: flex; gap: 12px; color: var(--home-muted); font-family: Oswald, sans-serif; font-size: 9px; letter-spacing: .14em; }
.account-main { width: min(1160px, calc(100% - 48px)); min-height: calc(100vh - 79px); margin: 0 auto; padding: clamp(55px, 8vw, 110px) 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(60px, 10vw, 150px); align-items: center; }
.account-intro { align-self: center; }
.account-kicker,.account-card-kicker { margin: 0 0 20px; color: var(--home-soft); font-family: Oswald, sans-serif; font-size: 9px; letter-spacing: .2em; }
.account-intro h1 { margin: 0; font-family: "Inter Tight", Inter, sans-serif; font-size: clamp(52px, 6vw, 84px); line-height: .94; letter-spacing: -.055em; font-weight: 500; }
.account-intro h1 em { color: var(--home-accent); font-style: normal; }
.account-intro > p:not(.account-kicker) { max-width: 540px; margin: 30px 0 0; color: var(--home-muted); font-size: 13px; line-height: 1.75; }
.account-rank-line { margin-top: 42px; display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; gap: 11px; align-items: center; color: var(--home-soft); font-family: Oswald, sans-serif; font-size: 8px; letter-spacing: .11em; }
.account-rank-line i { height: 1px; background: var(--home-border); }
.account-card { padding: 29px; border: 1px solid var(--home-border); border-radius: 28px; background: var(--home-surface); box-shadow: var(--home-shadow); }
.account-card h1,.account-card h2 { margin: 0 0 26px; font-family: "Inter Tight", Inter, sans-serif; font-size: 34px; line-height: 1.02; letter-spacing: -.04em; font-weight: 500; }
.account-tabs { margin-bottom: 35px; padding: 4px; border-radius: 14px; background: var(--home-control); display: grid; grid-template-columns: 1fr 1fr; }
.account-tabs button { min-height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--home-soft); cursor: pointer; font-family: Oswald, sans-serif; font-size: 9px; letter-spacing: .13em; }
.account-tabs button.is-active { background: var(--home-surface); color: var(--home-text); box-shadow: 0 5px 15px rgba(20,22,25,.07); }
.account-form,.account-reset { display: grid; gap: 15px; }
.account-form label:not(.account-consent),.account-reset label { display: grid; gap: 8px; color: var(--home-soft); font-family: Oswald, sans-serif; font-size: 8px; letter-spacing: .13em; }
.account-form input,.account-reset input,.profile-form input,.profile-form textarea,.member-editor input,.member-editor select { width: 100%; min-height: 49px; padding: 0 14px; border: 1px solid var(--home-border); border-radius: 13px; outline: 0; background: transparent; color: var(--home-text); font: 13px Inter, sans-serif; }
.account-form input:focus,.account-reset input:focus,.profile-form input:focus,.profile-form textarea:focus { border-color: var(--home-accent); box-shadow: 0 0 0 3px var(--home-accent-soft); }
.account-form label small { color: var(--home-soft); font: 8px Inter, sans-serif; letter-spacing: 0; }
.account-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--home-muted); font-size: 9px; line-height: 1.5; }
.account-consent input { width: 15px; min-height: 15px; flex: 0 0 15px; margin: 2px 0 0; }
.account-form-row { display: flex; justify-content: flex-end; }
.account-form-row a,.account-reset-back { border: 0; background: transparent; color: var(--home-soft); cursor: pointer; font-family: Oswald, sans-serif; font-size: 8px; letter-spacing: .12em; }
.account-submit { min-height: 50px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--home-text); color: var(--home-bg); cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-family: Oswald, sans-serif; font-size: 9px; letter-spacing: .14em; }
.account-submit:disabled { opacity: .55; cursor: wait; }
.account-message { margin: 0; padding: 11px 12px; border-radius: 11px; background: var(--home-control); color: var(--home-muted); font-size: 10px; line-height: 1.5; }
.account-message[data-state="error"] { background: rgba(175, 64, 64, .1); color: #9c3d3d; }
.account-message[data-state="success"] { background: rgba(47, 133, 90, .1); color: #286f4b; }
.account-reset-back { width: max-content; margin-bottom: 10px; padding: 0; }
.account-single { width: min(440px, calc(100% - 32px)); min-height: calc(100vh - 79px); margin: 0 auto; display: grid; place-items: center; padding: 40px 0; }

/* Profile — dashboard düzeni: hero, stat şeridi, iki kolon kart, aktivite listeleri. */
.profile-main { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 100px; }
.profile-main > [data-profile-content] { display: grid; gap: clamp(14px, 1.4vw, 18px); }
.profile-main .community-loading { min-height: 220px; padding: 34px; border: 1px dashed var(--home-border); border-radius: 24px; color: var(--home-soft); display: grid; place-items: center; text-align: center; font-size: 11px; line-height: 1.6; }

.profile-hero { position: relative; overflow: hidden; padding: clamp(26px, 3vw, 38px); border: 1px solid var(--home-border); border-radius: 30px; background: linear-gradient(145deg, var(--home-control), transparent 58%), var(--home-surface); box-shadow: var(--home-shadow); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 2vw, 28px); align-items: center; }
.profile-hero::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--home-soft), transparent 68%); }
.profile-avatar { width: 96px; height: 96px; border: 1px solid var(--home-border); border-radius: 32px; background: var(--home-surface); color: var(--home-text); display: grid; place-items: center; font: 500 30px/1 "Inter Tight", Inter, sans-serif; letter-spacing: -.03em; }
.profile-identity h1 { margin: 0; font-family: "Inter Tight", Inter, sans-serif; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.04; letter-spacing: -.045em; font-weight: 500; }
.verified-badge { width: 18px; height: 18px; margin-left: 7px; vertical-align: -.22em; }
.profile-identity h1 .verified-badge { width: 26px; height: 26px; margin-left: 11px; vertical-align: -.14em; }
.profile-identity-meta { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.profile-identity-meta span { max-width: 100%; overflow: hidden; padding: 7px 12px; border: 1px solid var(--home-border); border-radius: 999px; background: var(--home-surface); color: var(--home-muted); display: inline-flex; align-items: center; gap: 7px; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.profile-identity-meta svg { width: 12px; height: 12px; flex: 0 0 12px; color: var(--home-soft); }
.profile-rank { min-width: 176px; padding: 16px 20px; border: 1px solid var(--home-border); border-radius: 22px; background: var(--home-surface); box-shadow: var(--home-shadow); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 13px; align-items: center; }
.profile-rank svg { grid-row: span 2; width: 28px; height: 28px; color: var(--home-soft); }
.profile-rank span { color: var(--home-soft); font-family: Oswald, sans-serif; font-size: 8px; letter-spacing: .14em; }
.profile-rank strong { color: var(--home-text); font-family: "Inter Tight", Inter, sans-serif; font-size: 26px; line-height: 1; letter-spacing: -.035em; font-weight: 500; }

/* Stat şeridi: büyük rakam + Oswald etiket + ikon rozeti. */
.profile-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 14px); }
.profile-stat { padding: 20px 18px; border: 1px solid var(--home-border); border-radius: 22px; background: var(--home-surface); box-shadow: var(--home-shadow); display: grid; align-content: start; gap: 5px; }
.profile-stat-icon { width: 34px; height: 34px; margin-bottom: 12px; border-radius: 12px; background: var(--home-control); color: var(--home-text); display: grid; place-items: center; }
.profile-stat-icon svg { width: 17px; height: 17px; }
.profile-stat b { font-family: "Inter Tight", Inter, sans-serif; font-size: clamp(28px, 2.9vw, 36px); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.profile-stat-label { color: var(--home-muted); font-family: Oswald, sans-serif; font-size: 9px; letter-spacing: .12em; }
.profile-stat small { color: var(--home-soft); font: 8px/1.4 Oswald, sans-serif; letter-spacing: .09em; }
.profile-stat.is-accent { background: var(--home-text); border-color: var(--home-text); }
.profile-stat.is-accent b { color: var(--home-bg); }
.profile-stat.is-accent .profile-stat-icon { background: rgba(255,255,255,.14); color: var(--home-bg); }
.profile-stat.is-accent .profile-stat-label, .profile-stat.is-accent small { color: rgba(255,255,255,.7); }

.profile-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); gap: clamp(14px, 1.4vw, 18px); align-items: start; }
.profile-card { padding: clamp(24px, 2.3vw, 30px); border: 1px solid var(--home-border); border-radius: 26px; background: var(--home-surface); box-shadow: var(--home-shadow); }
.profile-card h2 { margin: 0; font-family: "Inter Tight", Inter, sans-serif; font-size: 24px; line-height: 1.12; letter-spacing: -.035em; font-weight: 500; }
.profile-card-head { margin-bottom: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.profile-card-head .account-card-kicker { margin-bottom: 9px; }
.profile-card-tag { padding: 9px 15px; border-radius: 999px; background: var(--home-text); color: var(--home-bg); font: 600 12px "Inter Tight", Inter, sans-serif; letter-spacing: -.01em; white-space: nowrap; }

.rank-progress { padding: 18px 20px 20px; border-radius: 20px; background: var(--home-control); }
.rank-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.rank-progress-head span:first-child { color: var(--home-text); font-size: 12px; line-height: 1.4; font-weight: 500; }
.rank-progress-head span + span { color: var(--home-text); font-family: "Inter Tight", Inter, sans-serif; font-size: 21px; letter-spacing: -.035em; }
.rank-progress-bar { height: 10px; margin-top: 14px; border-radius: 999px; background: var(--home-surface); box-shadow: inset 0 0 0 1px var(--home-border); overflow: hidden; }
.rank-progress-bar i { height: 100%; display: block; border-radius: inherit; background: var(--home-text); }

/* Rank merdiveni: kapalıyken tek satır, açılınca tam liste. */
.rank-ladder { margin-top: 20px; border-top: 1px solid var(--home-border); }
.rank-ladder summary { padding: 17px 0 0; display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.rank-ladder summary::-webkit-details-marker { display: none; }
.rank-ladder summary > span { color: var(--home-soft); font-family: Oswald, sans-serif; font-size: 8px; letter-spacing: .14em; }
.rank-ladder summary > b { margin-left: auto; color: var(--home-muted); font-size: 10px; font-weight: 500; }
.rank-ladder summary > i { color: var(--home-soft); font-style: normal; font-size: 13px; transition: transform .2s ease; }
.rank-ladder[open] summary > i { transform: rotate(180deg); }
.rank-ladder ol { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.rank-ladder li { padding: 10px 12px; border-radius: 13px; display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; color: var(--home-muted); }
.rank-ladder strong { font-size: 11px; font-weight: 600; }
.rank-ladder li > span { color: var(--home-soft); font-size: 9px; }
.rank-ladder b { min-width: 58px; color: var(--home-soft); font-family: Oswald, sans-serif; font-size: 8px; letter-spacing: .08em; font-weight: 500; text-align: right; }
.rank-ladder li.is-current { background: var(--home-control); color: var(--home-text); }
.rank-ladder li.is-current strong { color: var(--home-text); }
.rank-ladder li.is-current b { color: var(--home-text); }
.rank-ladder > p { margin: 14px 0 0; color: var(--home-soft); font-size: 9px; line-height: 1.6; }

.profile-form { display: grid; gap: 17px; }
.profile-form label { display: grid; gap: 9px; color: var(--home-soft); font-family: Oswald,sans-serif; font-size: 8px; letter-spacing: .12em; }
.profile-form input,.profile-form textarea { min-height: 52px; padding: 0 15px; border-color: transparent; border-radius: 15px; background: var(--home-control); transition: background .18s ease, border-color .18s ease; }
.profile-form textarea { min-height: 118px; padding: 14px 15px; line-height: 1.6; resize: vertical; }
.profile-form input:focus,.profile-form textarea:focus { background: var(--home-surface); }
.profile-form textarea::placeholder { color: var(--home-soft); }
.profile-form label small { color: var(--home-soft); font: 9px/1.5 Inter, sans-serif; letter-spacing: 0; }
.profile-form .account-message { padding: 13px 14px; border-radius: 14px; font-size: 11px; }
.profile-actions { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 10px; }
.profile-actions button,.profile-actions a { min-height: 48px; padding: 0 18px; border: 1px solid var(--home-border); border-radius: 14px; background: transparent; color: var(--home-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-family: Oswald,sans-serif; font-size: 9px; letter-spacing: .13em; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.profile-actions button:hover,.profile-actions a:hover { border-color: var(--home-text); color: var(--home-text); }
.profile-actions .is-primary { flex: 1 1 210px; background: var(--home-text); color: var(--home-bg); border-color: var(--home-text); }
.profile-actions .is-primary:hover { background: var(--home-accent); border-color: var(--home-accent); color: var(--home-bg); }
.profile-actions .is-primary:disabled { opacity: .55; cursor: wait; }

.profile-activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.4vw, 18px); align-items: start; }
.profile-activity .profile-card-head { margin-bottom: 14px; }
.profile-activity-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.profile-activity-list li { position: relative; padding: 14px; border: 1px solid transparent; border-radius: 18px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 13px; align-items: start; transition: background .18s ease, border-color .18s ease; }
.profile-activity-list li:hover { border-color: var(--home-border); background: var(--home-control); }
.profile-activity-list li > span { width: 28px; height: 28px; border-radius: 10px; background: var(--home-control); color: var(--home-soft); display: grid; place-items: center; font: 8px Oswald,sans-serif; letter-spacing: .06em; }
.profile-activity-list li:hover > span { background: var(--home-surface); color: var(--home-text); }
.profile-activity-list a { min-width: 0; display: grid; gap: 6px; }
.profile-activity-list a::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
.profile-activity-list small { color: var(--home-soft); font: 8px Oswald,sans-serif; letter-spacing: .09em; }
.profile-activity-list strong { overflow: hidden; color: var(--home-text); font-size: 12px; line-height: 1.45; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.profile-activity-list p { margin: 0; overflow: hidden; color: var(--home-muted); font-size: 10px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.profile-activity-list li > b { padding: 5px 9px; border-radius: 999px; background: var(--home-control); color: var(--home-muted); font: 8px Oswald,sans-serif; letter-spacing: .06em; white-space: nowrap; }
.profile-activity-empty { min-height: 150px; padding: 26px; border: 1px dashed var(--home-border); border-radius: 20px; color: var(--home-soft); display: grid; place-items: center; align-content: center; gap: 11px; text-align: center; font-size: 10px; }
.profile-activity-empty svg { width: 24px; height: 24px; }

@media (max-width: 940px) {
  .profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-grid,.profile-activity-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .account-main { width: min(100% - 30px, 600px); grid-template-columns: 1fr; gap: 45px; align-items: start; }
  .account-intro h1 { font-size: clamp(50px, 14vw, 72px); }
  .account-rank-line { display: none; }
  .profile-main { padding: 30px 0 80px; }
  .profile-hero { grid-template-columns: auto minmax(0, 1fr); }
  .profile-avatar { width: 78px; height: 78px; border-radius: 26px; font-size: 25px; }
  .profile-rank { grid-column: 1 / -1; min-width: 0; }
}
@media (max-width: 560px) {
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .profile-activity-list li { grid-template-columns: minmax(0,1fr) auto; }
  .profile-activity-list li > span { display: none; }
}
@media (max-width: 480px) {
  .account-main,.profile-main { width: calc(100% - 24px); }
  .account-card { padding: 22px; border-radius: 23px; }
  .account-back { display: none; }
  .profile-hero { padding: 22px; border-radius: 24px; }
  .profile-card { padding: 20px; border-radius: 22px; }
  .profile-stat { padding: 16px 15px; border-radius: 18px; }
  .profile-actions .is-primary { flex: 1 1 100%; }
}
