.account-page { min-height: 100vh; background: #f5f3ee; }
.account-page .is-hidden { display: none !important; }
.account-page .account-announcement-link { color: #d9bd72; font-size: .78rem; font-weight: 900; text-decoration: none; }
.account-header-actions { display: flex; align-items: center; gap: 10px; }
.account-header-actions a, .account-header-actions button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid #d8c58d; border-radius: 12px; color: #574114; background: #fffaf0; font-family: inherit; font-size: .82rem; font-weight: 900; text-decoration: none; cursor: pointer; }
.account-header-actions button { color: #fff; border-color: #171717; background: #171717; }
.account-main { min-height: 70vh; padding-block: 34px 90px; }
.account-loading { min-height: 340px; display: grid; place-items: center; align-content: center; gap: 16px; color: #6c6356; }
.account-loading span { width: 42px; height: 42px; border: 4px solid #eadfbe; border-top-color: #a67a29; border-radius: 50%; animation: account-spin .8s linear infinite; }
@keyframes account-spin { to { transform: rotate(360deg); } }
.account-signin { width: min(920px, 100%); display: grid; grid-template-columns: .9fr 1.1fr; margin: 24px auto; overflow: hidden; border: 1px solid #d9c994; border-radius: 28px; background: #fff; box-shadow: 0 22px 60px rgba(58,44,16,.1); }
.account-signin-copy { padding: 38px; color: #fff; background: radial-gradient(circle at 20% 10%, rgba(199,155,64,.28), transparent 42%), #111; }
.account-signin-copy > span, .account-kicker, .account-section-heading span { color: #b98b34; font-size: .78rem; font-weight: 900; }
.account-signin-copy h1 { margin: 8px 0 12px; color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; }
.account-signin-copy p { margin: 0; color: #d2cec5; font-size: 1rem; line-height: 1.85; }
.account-signin form { display: grid; align-content: center; gap: 14px; padding: 38px; }
.account-signin form > label:first-child { display: grid; gap: 7px; color: #554d42; font-size: .85rem; font-weight: 900; }
.account-signin input[type="tel"] { width: 100%; min-height: 54px; padding-inline: 16px; border: 1px solid #d9d0bd; border-radius: 12px; outline: none; font: 900 1.05rem "Thmanyah Sans", sans-serif; text-align: left; }
.account-signin input[type="tel"]:focus { border-color: #b4862f; box-shadow: 0 0 0 3px rgba(180,134,47,.12); }
.account-whatsapp-consent { display: flex; align-items: center; gap: 9px; color: #554d42; font-size: .84rem; font-weight: 800; }
.account-whatsapp-consent input { width: 19px; height: 19px; accent-color: #1b8d57; }
#accountPhoneError { min-height: 1.4em; margin: 0; color: #a52b2b; font-size: .78rem; font-weight: 800; }
.account-signin-actions { display: flex; gap: 9px; }
.account-signin-actions button { min-height: 50px; flex: 1; border: 0; border-radius: 12px; color: #15120b; background: linear-gradient(135deg, #ead186, #b88930); font-family: inherit; font-weight: 900; cursor: pointer; }
.account-signin-actions button + button { flex: 0 0 auto; padding-inline: 20px; border: 1px solid #d8d0bf; background: #fff; }
.account-signin form > small { color: #837c72; line-height: 1.7; }
.account-dashboard { display: grid; gap: 24px; }
.account-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 38px; overflow: hidden; border: 1px solid #342b1c; border-radius: 28px; color: #fff; background: radial-gradient(circle at 15% 20%, rgba(210,166,75,.24), transparent 32%), linear-gradient(135deg, #0c0c0c, #211b11); box-shadow: 0 20px 55px rgba(30,24,12,.18); }
.account-hero::after { content: ""; position: absolute; width: 220px; height: 220px; left: -60px; bottom: -130px; border: 1px solid rgba(230,196,113,.25); border-radius: 50%; box-shadow: 0 0 0 24px rgba(230,196,113,.035), 0 0 0 50px rgba(230,196,113,.025); }
.account-hero h1 { position: relative; z-index: 1; margin: 7px 0 5px; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; }
.account-hero p { position: relative; z-index: 1; margin: 0; color: #cbc5b9; }
.account-identity { position: relative; z-index: 1; min-width: 310px; display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid rgba(231,202,129,.34); border-radius: 18px; background: rgba(255,255,255,.055); }
.account-identity > img { width: 74px; height: 74px; flex: 0 0 74px; display: block; object-fit: cover; border: 2px solid #d9bd72; border-radius: 20px; background: #fff; }
.account-identity > div { min-width: 0; display: grid; gap: 3px; }
.account-identity span { color: #bdb7aa; font-size: .75rem; }
.account-identity strong { overflow: hidden; color: #f3d98f; font-size: 1.35rem; text-overflow: ellipsis; white-space: nowrap; }
.account-identity small { color: #ddd6c8; font-family: "Thmanyah Sans", sans-serif; font-size: .82rem; }
.account-identity em { width: fit-content; margin-top: 3px; padding: 5px 9px; border-radius: 999px; color: #d9f5e7; background: rgba(30,141,88,.24); font-size: .72rem; font-style: normal; font-weight: 900; }
.account-identity em.status-pending { color: #ffe6a8; background: rgba(180,126,31,.25); }
.account-identity em.status-blocked { color: #ffd1d1; background: rgba(174,43,43,.3); }
.account-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.account-stats article { position: relative; min-height: 120px; display: grid; align-content: center; gap: 4px; padding: 20px; overflow: hidden; border: 1px solid #e2d7bb; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(57,45,20,.06); }
.account-stats article::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #b4852d, #efd68e); }
.account-stats span { color: #746d61; font-size: .78rem; }
.account-stats strong { color: #17130d; font-size: 2rem; line-height: 1.05; }
.account-stats small { color: #8a7c5d; font-weight: 800; }
.account-section { padding: 26px; border: 1px solid #e1d8c5; border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 14px 38px rgba(54,43,19,.06); }
.account-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.account-section-heading h2 { margin: 4px 0 0; font-size: 1.75rem; }
.account-section-heading button { min-height: 38px; padding-inline: 14px; border: 1px solid #d9c78d; border-radius: 10px; color: #6b4f17; background: #fffaf0; font-family: inherit; font-weight: 900; cursor: pointer; }
.account-profile-section > .account-section-heading > small { max-width: 390px; color: #777064; font-size: .78rem; line-height: 1.7; }
.account-profile-form { display: grid; grid-template-columns: 250px 1fr; gap: 24px; }
.account-avatar-field { min-height: 190px; display: grid; justify-items: center; align-content: center; gap: 10px; padding: 18px; border: 1px dashed #c9ad66; border-radius: 18px; background: #fffaf0; text-align: center; cursor: pointer; }
.account-avatar-field > img { width: 104px; height: 104px; display: block; object-fit: cover; border: 3px solid #d2af58; border-radius: 26px; background: #fff; box-shadow: 0 10px 26px rgba(75,55,16,.13); }
.account-avatar-field > span { display: grid; gap: 2px; }
.account-avatar-field strong { color: #4b3917; font-size: .9rem; }
.account-avatar-field small { color: #827762; font-size: .7rem; line-height: 1.5; }
.account-avatar-field input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.account-avatar-field:focus-within { outline: 3px solid rgba(184,139,49,.18); outline-offset: 2px; }
.account-profile-fields { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 14px; }
.account-profile-fields label { display: grid; gap: 7px; color: #554d42; font-size: .8rem; font-weight: 900; }
.account-profile-fields label.wide, #accountProfileError, #saveAccountProfile { grid-column: 1 / -1; }
.account-profile-fields label span small { color: #9a9285; font-size: .65rem; }
.account-profile-fields input { width: 100%; min-height: 49px; padding: 0 14px; border: 1px solid #d9d0bd; border-radius: 11px; outline: none; background: #fff; font: 800 .9rem "Thmanyah Sans", sans-serif; }
.account-profile-fields input:not([dir="ltr"]) { font-family: inherit; }
.account-profile-fields input:focus { border-color: #b4862f; box-shadow: 0 0 0 3px rgba(180,134,47,.12); }
.account-profile-fields input[readonly] { color: #6f685f; background: #f4f1eb; cursor: default; }
#accountProfileError { min-height: 1.2em; margin: 0; color: #a52b2b; font-size: .75rem; font-weight: 800; }
#saveAccountProfile { min-height: 49px; border: 0; border-radius: 12px; color: #17120a; background: linear-gradient(135deg, #efd782, #cda74c); font-family: inherit; font-weight: 950; cursor: pointer; box-shadow: 0 8px 20px rgba(145,104,25,.15); }
#saveAccountProfile:disabled { cursor: wait; opacity: .65; }
.account-bids-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.account-followed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.account-followed-card { min-width: 0; overflow: hidden; border: 1px solid #e1d7bf; border-radius: 16px; background: #fff; }
.account-followed-media { height: 145px; display: block; overflow: hidden; background: #17140e; }
.account-followed-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.account-followed-content { display: grid; gap: 8px; padding: 14px; }
.account-followed-content > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.account-followed-content span { overflow: hidden; color: #967025; font-size: .7rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.account-followed-content em { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: #17653f; background: #eaf8f0; font-size: .62rem; font-style: normal; font-weight: 900; }
.account-followed-content em.phase-ended { color: #6d665c; background: #efede8; }
.account-followed-content em.phase-paused, .account-followed-content em.phase-upcoming { color: #7a5819; background: #fff1ca; }
.account-followed-content h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; overflow-wrap: anywhere; }
.account-followed-content p { margin: 0; color: #4e4638; font-size: .8rem; font-weight: 900; }
.account-followed-content > a { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: #fff; background: #171717; font-size: .74rem; font-weight: 900; text-decoration: none; }
.account-bid-card { min-width: 0; display: grid; grid-template-columns: 150px 1fr; overflow: hidden; border: 1px solid #e1d7bf; border-radius: 18px; background: #fff; }
.account-bid-media { min-height: 220px; display: block; overflow: hidden; background: #17140e; }
.account-bid-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.account-bid-content { min-width: 0; display: flex; flex-direction: column; align-items: stretch; padding: 16px; }
.account-bid-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.account-bid-top > span { overflow: hidden; color: #9b7124; font-size: .72rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.account-bid-top em { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: #17653f; background: #eaf8f0; font-size: .64rem; font-style: normal; font-weight: 900; }
.account-bid-top em.phase-ended { color: #6d665c; background: #efede8; }
.account-bid-top em.phase-paused, .account-bid-top em.phase-upcoming { color: #7a5819; background: #fff1ca; }
.account-bid-content h3 { margin: 7px 0 8px; font-size: 1.35rem; line-height: 1.25; overflow-wrap: anywhere; }
.account-bid-status { width: fit-content; padding: 5px 9px; border-radius: 8px; font-size: .72rem; }
.account-bid-status.leading, .account-bid-status.won { color: #12633b; background: #e8f7ef; }
.account-bid-status.outbid { color: #a22a2a; background: #fff0f0; }
.account-bid-status.pending { color: #725216; background: #fff4d5; }
.account-bid-status.ended { color: #69635b; background: #f0eeea; }
.account-bid-values { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
.account-bid-values div { display: grid; gap: 2px; padding: 8px; border-radius: 10px; background: #f7f4ed; }
.account-bid-values dt { color: #837b6e; font-size: .66rem; }
.account-bid-values dd { margin: 0; font-size: .82rem; font-weight: 900; }
.account-bid-meta { margin: 9px 0; color: #8a8378; font-size: .68rem; }
.account-bid-action { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; margin-top: auto; border-radius: 10px; color: #fff; background: #171717; font-size: .76rem; font-weight: 900; text-decoration: none; }
.account-transactions { display: grid; gap: 10px; }
.account-entry-payments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.account-entry-payment-card { display: grid; gap: 11px; padding: 17px; border: 1px solid #ddd3bd; border-radius: 16px; background: #fff; }
.account-entry-payment-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-entry-payment-head > div { display: grid; gap: 2px; }
.account-entry-payment-head span { color: #7d7569; font-size: .72rem; }
.account-entry-payment-head strong { color: #18603d; font-family: "Thmanyah Sans", sans-serif; font-size: 1.1rem; }
.account-entry-payment-head em { padding: 6px 9px; border-radius: 999px; font-size: .68rem; font-style: normal; font-weight: 900; }
.account-entry-payment-head .entry-status-paid, .account-entry-payment-head .entry-status-refunded { color: #17653f; background: #e6f6ed; }
.account-entry-payment-head .entry-status-retained { color: #6b4f17; background: #f8edce; }
.account-entry-payment-head .entry-status-pending, .account-entry-payment-head .entry-status-refunding { color: #645b47; background: #f0ece2; }
.account-entry-payment-head .entry-status-refund-failed { color: #8b2d2d; background: #fff0f0; }
.account-entry-payment-card p { margin: 0; color: #686157; font-size: .78rem; line-height: 1.7; }
.account-entry-payment-card > a { justify-self: start; color: #735315; font-size: .76rem; font-weight: 900; text-decoration: none; }
.account-transaction-card { padding: 18px; border: 1px solid #e2d6b7; border-radius: 16px; background: linear-gradient(145deg, #fffdf8, #fbf5e7); }
.account-transaction-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.account-transaction-head > div { display: grid; gap: 2px; }
.account-transaction-head span { color: #7d7569; font-size: .72rem; }
.account-transaction-head strong { color: #6c4e15; font-size: 1.2rem; }
.account-transaction-head em { padding: 6px 9px; border-radius: 999px; color: #17653f; background: #e6f6ed; font-size: .7rem; font-style: normal; font-weight: 900; }
.account-transaction-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 15px 0 0; }
.account-transaction-card dl div { display: grid; gap: 2px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.75); }
.account-transaction-card dt { color: #81796e; font-size: .7rem; }
.account-transaction-card dd { margin: 0; font-size: .82rem; font-weight: 900; }
.account-transaction-card p { color: #655d51; font-size: .78rem; }
.account-payment-meta { padding: 10px 12px; border-radius: 10px; color: #155f3b !important; background: #e9f8ef; font-weight: 800; }
.account-transaction-actions { display: flex; align-items: center; gap: 9px; margin-top: 13px; }
.account-transaction-actions a, .account-pay-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border: 0; border-radius: 11px; font-family: inherit; font-size: .78rem; font-weight: 900; text-decoration: none; cursor: pointer; }
.account-transaction-actions a { color: #765517; background: #f5ecd8; }
.account-transaction-actions .account-receipt-link { color: #fff; background: #171512; }
.account-entry-payment-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 12px 0; }
.account-entry-payment-facts div { min-width: 0; display: grid; gap: 3px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.7); }
.account-entry-payment-facts dt { color: #7c7467; font-size: .68rem; }
.account-entry-payment-facts dd { overflow-wrap: anywhere; margin: 0; font-family: "Thmanyah Sans",sans-serif; font-size: .75rem; font-weight: 800; }
.account-entry-payment-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-entry-payment-actions a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 10px; color: #6b501b; background: #f3ead5; font-size: .75rem; font-weight: 900; text-decoration: none; }
.account-entry-payment-actions .account-receipt-link { color: #fff; background: #171512; }
.account-pay-button { flex: 1; color: #17120a; background: linear-gradient(135deg, #efd782, #cda74c); box-shadow: 0 8px 20px rgba(145, 104, 25, .16); }
.account-pay-button:disabled { cursor: wait; opacity: .65; }
.account-notifications { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.account-notifications li { position: relative; padding: 15px 16px; border: 1px solid #e5dfd3; border-radius: 14px; background: #fff; }
.account-notifications li.unread { border-color: #d5b45e; background: #fffaf0; }
.account-notifications li.unread::before { content: ""; position: absolute; top: 20px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: #b2842d; }
.account-notifications strong { display: block; margin-bottom: 3px; font-size: .92rem; }
.account-notifications p { margin: 0; color: #655f56; font-size: .8rem; line-height: 1.7; }
.account-notifications time { display: inline-block; margin-top: 5px; color: #989187; font-size: .68rem; }
.account-notifications a { float: left; margin-top: 5px; color: #765517; font-size: .72rem; font-weight: 900; }
.account-empty { grid-column: 1 / -1; margin: 0; padding: 28px; border: 1px dashed #d9cfba; border-radius: 14px; color: #817a70; background: #faf8f3; text-align: center; }
.account-toast { position: fixed; z-index: 100; right: 50%; bottom: 28px; max-width: calc(100% - 30px); padding: 12px 17px; border-radius: 12px; color: #fff; background: #17633d; font-size: .82rem; font-weight: 900; opacity: 0; transform: translate(50%, 18px); pointer-events: none; transition: .2s ease; }
.account-toast.show { opacity: 1; transform: translate(50%, 0); }
.account-toast.error { background: #9b2c2c; }

@media (max-width: 900px) {
  .account-stats { grid-template-columns: repeat(2, 1fr); }
  .account-entry-payments { grid-template-columns: 1fr; }
  .account-bids-grid { grid-template-columns: 1fr; }
  .account-followed-grid { grid-template-columns: repeat(2, 1fr); }
  .account-profile-form { grid-template-columns: 210px 1fr; }
}

@media (max-width: 700px) {
  .account-header-actions a { display: none; }
  .account-header-actions button { min-height: 36px; padding-inline: 10px; font-size: .7rem; }
  .account-main { padding-block: 20px 110px; }
  .account-signin { grid-template-columns: 1fr; border-radius: 20px; }
  .account-signin-copy, .account-signin form { padding: 25px 22px; }
  .account-hero { align-items: stretch; flex-direction: column; padding: 26px 22px; border-radius: 22px; }
  .account-identity { min-width: 0; }
  .account-profile-section > .account-section-heading { display: grid; }
  .account-profile-form { grid-template-columns: 1fr; gap: 16px; }
  .account-avatar-field { min-height: 165px; }
  .account-section { padding: 20px 15px; border-radius: 19px; }
  .account-section-heading { align-items: flex-start; }
  .account-section-heading h2 { font-size: 1.45rem; }
  .account-bid-card { grid-template-columns: 118px 1fr; }
  .account-bid-media { min-height: 245px; }
  .account-bid-content { padding: 13px; }
  .account-transaction-card dl { grid-template-columns: 1fr; }
  .account-entry-payment-facts { grid-template-columns: 1fr; }
  .account-followed-grid { grid-template-columns: 1fr; }
  .account-followed-card { display: grid; grid-template-columns: 108px 1fr; }
  .account-followed-media { height: 100%; min-height: 160px; }
  .account-page .account-toast { bottom: 102px; }
}

@media (max-width: 430px) {
  .account-stats { gap: 8px; }
  .account-stats article { min-height: 106px; padding: 15px; }
  .account-stats strong { font-size: 1.65rem; }
  .account-profile-fields { grid-template-columns: 1fr; }
  .account-bid-card { grid-template-columns: 105px 1fr; }
  .account-bid-values { grid-template-columns: 1fr; }
}
