/* ============================================================
   Conta — painel do jogador (fidelitygg.com/conta)

   Baseado na referência "Account Panel" das imagens: cards branco
   pergaminho sobre fundo escuro do site, sidebar discreta com item
   ativo em vermelho-cinza, badges de status em accent vermelho,
   botões dourados ornamentados pro CTA principal.
   ============================================================ */

/* ---- Folga generosa antes do footer (banner -300px + bg 593px) ---- */
.conta-page .pixarts-site-content { padding-bottom: 720px; }
.conta-page .pixarts-container.relative {
    max-width: 1180px;
    position: relative;
    z-index: 2;
}
.conta-page .conta-layout,
.conta-page .conta-content > :last-child { margin-bottom: 60px; }

/* ---- BARRA DE BOAS-VINDAS ---- */
.conta-welcome {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 30px 0 22px;
    padding: 18px 28px;
    background: #f7f1e2;
    border: 1px solid #d6bd8b;
    border-radius: 4px;
    box-shadow: 0 2px 0 rgba(120, 88, 45, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.cw-avatar {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 30%, #fff2c8 0%, #c79a5b 70%, #80572a 100%);
    border: 2px solid #b18648;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.cw-avatar span {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: #3a2308;
    text-shadow: 0 1px 0 rgba(255, 230, 180, 0.6);
}
.cw-avatar.cw-avatar-img { background: #d6bd8b; }
.cw-avatar.cw-avatar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cw-name { font-size: 15px; color: #6b5b46; }
.cw-name strong { color: #3a2f27; font-weight: 800; }
.cw-balance { font-size: 13px; color: #8a7458; }
.cw-balance b { color: #b03a2e; font-weight: 800; font-size: 15px; }
.cw-buy.header-button {
    width: 220px;
    height: 71px;
    background-image: url(/img/header-button.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    flex: 0 0 auto;
}
.cw-buy.header-button:hover { filter: brightness(110%); transform: translateY(-1px); }
.cw-buy.header-button span {
    position: relative;
    top: -4px;
    font-size: 14px;
    color: #33211d;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0.5px 1px 1px #fceca0;
}

/* ---- LAYOUT ---- */
.conta-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    align-items: flex-start;
}

/* ---- SIDEBAR ---- */
.conta-side {
    background: #f7f1e2;
    border: 1px solid #d6bd8b;
    border-radius: 4px;
    padding: 20px 16px;
    box-shadow: 0 2px 0 rgba(120, 88, 45, 0.06);
    position: sticky;
    top: 22px;
}
.cs-head {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #8a5a14;
    padding-bottom: 14px;
    border-bottom: 1px dashed #cbab74;
    margin-bottom: 12px;
}
.cs-nav { display: flex; flex-direction: column; gap: 2px; }
.cs-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #6b5b46;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}
.cs-nav a:hover { background: rgba(214, 173, 109, 0.18); color: #3a2f27; }
.cs-nav a.is-active {
    color: #b03a2e;
    background: rgba(176, 58, 46, 0.08);
    font-weight: 700;
}
.cs-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    opacity: 0.9;
}
.cs-nav a.is-active .cs-ico { color: #b03a2e; opacity: 1; }
.cs-divider { height: 1px; background: linear-gradient(90deg, #cbab74, rgba(203, 171, 116, 0)); margin: 14px 6px; }
.cs-nav-extra a { font-size: 13px; padding: 8px 14px; }

/* ---- PAINEL DE CONTEÚDO ---- */
.conta-content { display: flex; flex-direction: column; gap: 18px; }
.conta-panel {
    background: #f7f1e2;
    border: 1px solid #d6bd8b;
    border-radius: 4px;
    padding: 24px 26px 26px;
    box-shadow: 0 2px 0 rgba(120, 88, 45, 0.06);
}
.cp-title {
    margin: 0 0 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a5a14;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cp-title::before {
    content: '';
    width: 12px;
    height: 12px;
    background: linear-gradient(150deg, #e8c987, #c79a5b);
    transform: rotate(45deg);
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.cp-rule {
    height: 1px;
    background: linear-gradient(90deg, #cbab74 0%, rgba(203, 171, 116, 0.4) 60%, rgba(203, 171, 116, 0) 100%);
    margin: 14px 0 20px;
}
.cp-meta {
    margin-left: auto;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #8a7458;
    background: #efe7d4;
    border: 1px solid #d6bd8b;
    padding: 3px 9px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: none;
}
.cp-empty {
    margin: 0;
    padding: 24px;
    text-align: center;
    background: #efe7d4;
    border: 1px dashed #cbab74;
    border-radius: 4px;
    font-size: 13.5px;
    color: #8a7458;
}
.cp-hint {
    margin: 18px 0 0;
    font-size: 12px;
    color: #8a7458;
    text-align: center;
    font-style: italic;
}

/* ---- ACCOUNT OVERVIEW: 3 INFO CARDS ---- */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fbf3df;
    border: 1px solid #d6bd8b;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(120, 88, 45, 0.35); }
.info-card-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #e8c987 0%, #c79a5b 100%);
    color: #2b1d10;
    border: 1px solid #8a5a14;
    box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.5);
}
.info-card-icon svg { width: 20px; height: 20px; }
.info-card-body { min-width: 0; }
.info-card-label {
    font-size: 11px;
    font-weight: 700;
    color: #8a7458;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.info-card-value { font-size: 15px; color: #3a2f27; font-weight: 700; margin-top: 2px; }
.info-card-value.is-accent { color: #b03a2e; }

/* ---- TABELA DE PERSONAGENS ---- */
.chars-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}
.chars-table th,
.chars-table td { padding: 14px 12px; text-align: left; font-size: 13.5px; }
.chars-table thead th {
    font-size: 11px;
    font-weight: 800;
    color: #8a7458;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px dashed #cbab74;
}
.chars-table tbody tr { border-bottom: 1px solid rgba(203, 171, 116, 0.35); }
.chars-table tbody tr:last-child { border-bottom: 0; }
.chars-table tbody tr:hover { background: rgba(214, 173, 109, 0.08); }
.chars-table td.col-name { color: #3a2f27; font-weight: 700; }
.chars-table td.col-class,
.chars-table td.col-level,
.chars-table td.col-time { color: #6b5b46; }
.chars-table td.col-action { text-align: right; }
.btn-unstuck {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(180deg, #5a4030 0%, #3a2818 100%);
    color: #f5e7c8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid #2b1d10;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}
.btn-unstuck:hover { background: linear-gradient(180deg, #6e5042 0%, #4a3424 100%); transform: translateY(-1px); }
.btn-unstuck:active { transform: translateY(0); }

/* ---- ITEM SHOP ---- */
.shop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.shop-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-pills a {
    padding: 9px 24px;
    text-decoration: none;
    color: #8a7458;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #efe7d4;
    border: 1px solid #d6bd8b;
    border-radius: 3px;
    transition: all 0.18s ease;
}
.shop-pills a:hover { background: #fbf3df; color: #3a2f27; }
.shop-pills a.is-active {
    background: linear-gradient(180deg, #b18648 0%, #8a5a14 100%);
    color: #fff8e4;
    border-color: #5a3a08;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 0 rgba(58, 35, 8, 0.18), inset 0 1px 0 rgba(255, 230, 180, 0.35);
}
.shop-search {
    position: relative;
    display: flex;
    align-items: center;
}
.shop-search input {
    width: 240px;
    padding: 9px 14px 9px 36px;
    background: #fff;
    border: 1px solid #d6bd8b;
    border-radius: 3px;
    font-size: 13px;
    color: #3a2f27;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.shop-search input:focus { border-color: #b18648; box-shadow: 0 0 0 3px rgba(177, 134, 72, 0.18); }
.shop-search svg {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #a08868;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.shop-item {
    background: #fbf3df;
    border: 1px solid #d6bd8b;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s cubic-bezier(.22, 1, .36, 1), box-shadow 0.22s ease;
}
.shop-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -12px rgba(120, 88, 45, 0.5); }
.shop-item-img {
    aspect-ratio: 1;
    background: #efe7d4;
    border-bottom: 1px solid #d6bd8b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #b8a07e;
}
.shop-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 22px;
    box-sizing: border-box;
}
.shop-item-img .placeholder-icon { width: 64px; height: 64px; opacity: 0.45; }
.shop-item-img .shop-item-featured {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #b03a2e;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.shop-item-body {
    padding: 16px 18px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.shop-item-name {
    font-size: 14px;
    color: #3a2f27;
    font-weight: 700;
    line-height: 1.3;
}
.shop-item-price {
    font-size: 17px;
    font-weight: 800;
    color: #b03a2e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.shop-item-price .coin-glyph {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #e8c987 0%, #8a5a14 100%);
    border-radius: 50%;
    border: 1px solid #5a3a08;
    color: #2b1d10;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
.shop-item-stock { font-size: 11px; color: #a08868; font-style: italic; }
.shop-purchase {
    padding: 10px;
    background: linear-gradient(180deg, #4a3424 0%, #2b1d10 100%);
    color: #f5e7c8;
    border: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: filter 0.2s ease, transform 0.15s ease;
    width: 100%;
    margin-top: 4px;
}
.shop-purchase:hover { filter: brightness(115%); }
.shop-purchase:disabled { opacity: 0.55; cursor: not-allowed; filter: grayscale(0.4); }
.shop-purchase svg { width: 14px; height: 14px; }

/* Switch cash/gold */
.shop-currency {
    display: inline-flex;
    background: #efe7d4;
    border: 1px solid #d6bd8b;
    padding: 3px;
    border-radius: 999px;
}
.shop-currency a {
    padding: 6px 16px;
    border-radius: 999px;
    text-decoration: none;
    color: #8a7458;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.15s ease, color 0.15s ease;
}
.shop-currency a.is-active {
    background: linear-gradient(180deg, #fbf3df 0%, #efe7d4 100%);
    color: #3a2f27;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #cbab74;
}

/* Paginação */
.shop-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
}
.shop-pagination a,
.shop-pagination span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6bd8b;
    background: #fbf3df;
    color: #6b5b46;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 3px;
    transition: background 0.15s ease, color 0.15s ease;
}
.shop-pagination a:hover { background: #efe7d4; color: #3a2f27; }
.shop-pagination .is-active {
    background: linear-gradient(180deg, #4a3424 0%, #2b1d10 100%);
    color: #f5e7c8;
    border-color: #2b1d10;
}
.shop-pagination .is-disabled { opacity: 0.4; pointer-events: none; }

/* ---- FORMULÁRIO (Settings, Profile, etc.) ---- */
.conta-form { display: flex; flex-direction: column; gap: 16px; }

/* Grid usado pelos forms em duas colunas (perfil, etc). */
.form-grid { display: grid; gap: 14px 18px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.field-group-full { grid-column: 1 / -1; }

.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: #3a2f27;
}
.field-group input,
.field-group select,
.field-group textarea {
    padding: 11px 14px;
    font-size: 14px;
    color: #3a2f27;
    background: #fff;
    border: 1px solid #d6bd8b;
    border-radius: 3px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field-group input::placeholder { color: #b8a07e; }
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    border-color: #b18648;
    background: #fff8e4;
    box-shadow: 0 0 0 3px rgba(177, 134, 72, 0.18);
}
.field-group small {
    font-size: 11.5px;
    color: #8a7458;
    line-height: 1.4;
}
.field-group small.is-error { color: #b03a2e; }

.conta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    background: #efe7d4;
    color: #3a2f27;
    border: 1px solid #cbab74;
    border-radius: 3px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.conta-btn:hover { background: #fbf3df; transform: translateY(-1px); box-shadow: 0 4px 8px -4px rgba(120, 88, 45, 0.3); }
.conta-btn:active { transform: translateY(0); }
.conta-btn-primary {
    background: linear-gradient(180deg, #4a3424 0%, #2b1d10 100%);
    color: #f5e7c8;
    border: 0;
}
.conta-btn-primary:hover { filter: brightness(115%); background: linear-gradient(180deg, #4a3424 0%, #2b1d10 100%); }

.conta-form-actions {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
}
.conta-form-msg { font-size: 13px; font-weight: 600; }
.conta-form-msg.is-ok  { color: #2a7a3d; }
.conta-form-msg.is-err { color: #b03a2e; }

/* ---- FLASH ---- */
.tkt-flash {
    margin: 0 0 14px;
    padding: 11px 14px;
    border-radius: 3px;
    font-size: 13.5px;
    font-weight: 600;
}
.tkt-flash.is-success { background: #e7f5ec; border: 1px solid #93cba8; color: #2a7a3d; }
.tkt-flash.is-error   { background: #fbeae8; border: 1px solid #e0a7a0; color: #b03a2e; }
.tkt-flash.is-info    { background: #e7f1fb; border: 1px solid #9ec1e8; color: #2a5a8a; }

/* ============================================================
   TICKETS (mantém visual existente, integrado ao novo)
   ============================================================ */
.tkt-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tkt-list { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.tkt-row {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fbf3df;
    border: 1px solid #d6bd8b;
    border-radius: 3px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, background 0.2s ease;
}
.tkt-row:hover { background: #fff8e4; transform: translateX(3px); }
.tkt-id { font-family: 'Open Sans', sans-serif; font-weight: 800; color: #8a5a14; font-size: 14px; }
.tkt-subject { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tkt-subject strong { color: #3a2f27; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tkt-subject small { color: #8a7458; font-size: 11.5px; font-weight: 600; }
.tkt-status-badge {
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.tkt-status-badge.is-open    { background: #fff1c8; color: #8a5a14; border: 1px solid #d6bd8b; }
.tkt-status-badge.is-admin   { background: #dff0d8; color: #2a7a3d; border: 1px solid #93cba8; }
.tkt-status-badge.is-waiting { background: #e7f1fb; color: #2a5a8a; border: 1px solid #9ec1e8; }
.tkt-status-badge.is-closed  { background: #efe7d4; color: #8a7458; border: 1px solid #cbab74; }

.tkt-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.tkt-back a { font-size: 12.5px; color: #8a7458; text-decoration: none; font-weight: 600; }
.tkt-back a:hover { color: #3a2f27; }
.tkt-id-big { color: #8a5a14; margin-right: 8px; }
.tkt-meta-line { margin: 4px 0 0; color: #8a7458; font-size: 12.5px; }
.tkt-thread { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 20px; }
.tkt-msg {
    padding: 14px 16px;
    border-radius: 3px;
    background: #fbf3df;
    border-left: 3px solid #cbab74;
}
.tkt-msg.is-admin { background: #f0f7ea; border-left-color: #5a9b6c; }
.tkt-msg.is-system { background: #efe7d4; border-left-color: #a08868; font-style: italic; }
.tkt-msg-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.tkt-msg-head strong { color: #3a2f27; font-size: 13px; font-weight: 800; }
.tkt-msg-role {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: 999px;
    background: #efe7d4;
    color: #8a7458;
}
.tkt-msg.is-admin .tkt-msg-role { background: #dff0d8; color: #2a7a3d; }
.tkt-msg-when { font-size: 11px; color: #a08868; margin-left: auto; }
.tkt-msg-body { color: #3a2f27; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }

.tkt-reply { margin-top: 8px; }
.tkt-close { margin-top: 18px; text-align: right; }
.tkt-close-btn {
    background: transparent;
    border: 0;
    color: #b03a2e;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
}
.tkt-close-btn:hover { color: #8a2a1e; }

/* ============================================================
   GRID DE PERSONAGENS (página /conta/personagens)
   ============================================================ */
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.char-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fbf3df;
    border: 1px solid #d6bd8b;
    border-radius: 3px;
    transition: transform 0.22s cubic-bezier(.22, 1, .36, 1), box-shadow 0.22s ease;
}
.char-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px -10px rgba(120, 88, 45, 0.4); }
.char-avatar {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 30%, #fff2c8 0%, #c79a5b 70%, #80572a 100%);
    border: 2px solid #b18648;
    box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.35), 0 2px 6px rgba(0, 0, 0, 0.18);
}
.char-avatar span {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #3a2308;
}
.char-card.is-female .char-avatar { border-color: #c08b8b; }
.char-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.char-name { font-size: 15px; color: #3a2f27; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-class { font-size: 12px; color: #8a7458; font-weight: 600; }
.char-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 11.5px; }
.char-level { color: #3a2f27; background: #ffe9b9; border: 1px solid #d6bd8b; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.char-level b { color: #8a5a14; margin-right: 3px; }
.char-id { color: #a08868; font-family: 'Open Sans', monospace; font-size: 10.5px; }

/* ============================================================
   PÁGINA DE PERFIL (avatar upload + dados)
   ============================================================ */
.perfil-avatar-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.perfil-avatar-preview {
    flex: 0 0 auto;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 35% 30%, #fff2c8 0%, #c79a5b 70%, #80572a 100%);
    border: 3px solid #b18648;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}
.perfil-avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.perfil-avatar-initial { font-family: 'Open Sans', sans-serif; font-size: 56px; font-weight: 800; color: #3a2308; }
.perfil-avatar-info { flex: 1; min-width: 220px; }
.perfil-avatar-info strong { display: block; font-size: 14px; color: #3a2f27; margin-bottom: 6px; }
.perfil-avatar-info p { margin: 0 0 12px; font-size: 12.5px; color: #8a7458; line-height: 1.5; }
.perfil-avatar-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.perfil-avatar-msg {
    font-size: 12.5px;
    font-weight: 600;
}
.perfil-avatar-msg.is-ok  { color: #2a7a3d; }
.perfil-avatar-msg.is-err { color: #b03a2e; }

@media (max-width: 680px) {
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}

/* ---- DICAS DE SEGURANÇA / ZONA DE RISCO ---- */
.sec-tips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sec-tips li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: #fbf3df;
    border: 1px solid #d6bd8b;
    border-left: 3px solid #b18648;
    border-radius: 3px;
}
.sec-tips-ico {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #e8c987 0%, #c79a5b 100%);
    color: #2b1d10;
    border: 1px solid #8a5a14;
    box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.5);
}
.sec-tips-ico svg { width: 18px; height: 18px; }
.sec-tips li strong {
    display: block;
    color: #3a2f27;
    font-size: 14px;
    margin-bottom: 4px;
}
.sec-tips li p {
    margin: 0;
    color: #6b5b46;
    font-size: 12.5px;
    line-height: 1.55;
}
.sec-tips li a { color: #b03a2e; font-weight: 700; text-decoration: none; }
.sec-tips li a:hover { text-decoration: underline; }

.sec-danger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    background: #fbeae8;
    border: 1px solid #e0a7a0;
    border-left: 3px solid #b03a2e;
    border-radius: 3px;
    flex-wrap: wrap;
}
.sec-danger strong { color: #8a2a1e; font-size: 14px; display: block; margin-bottom: 4px; }
.sec-danger p { margin: 0; color: #6b3a36; font-size: 12.5px; line-height: 1.5; max-width: 540px; }
.sec-danger a.conta-btn-primary {
    background: linear-gradient(180deg, #c44a3e 0%, #8a2a1e 100%);
    color: #fff;
    border: 0;
    white-space: nowrap;
}
.sec-danger a.conta-btn-primary:hover { filter: brightness(115%); }

/* ============================================================
   LOJA — modal de compra
   ============================================================ */
.loja-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 14, 8, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9000;
    backdrop-filter: blur(2px);
}
.loja-modal[hidden] { display: none; }
.loja-modal-card {
    background: #f7f1e2;
    border: 1px solid #cbab74;
    border-radius: 4px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
    max-width: 440px;
    width: 100%;
    padding: 24px 26px;
}
.loja-modal-card h3 { margin: 0 0 8px; font-size: 17px; color: #3a2f27; font-weight: 800; }
.loja-modal-card p { margin: 0 0 14px; color: #6b5b46; font-size: 13.5px; line-height: 1.5; }
.loja-modal-card p b { color: #3a2f27; }
.loja-modal-note {
    background: #efe7d4;
    border: 1px dashed #cbab74;
    padding: 10px 12px;
    border-radius: 3px;
    font-size: 12px !important;
    color: #8a7458 !important;
    margin: 14px 0 0 !important;
}
.loja-modal-msg { margin: 12px 0 0; font-size: 12.5px; font-weight: 700; min-height: 18px; }
.loja-modal-msg.is-ok { color: #2a7a3d; }
.loja-modal-msg.is-err { color: #b03a2e; }
.loja-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* ============================================================
   HISTÓRICO DE COMPRAS / RESGATES
   ============================================================ */
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    background: #fbf3df;
    border: 1px solid #d6bd8b;
    border-radius: 3px;
}
.history-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.history-info strong { color: #3a2f27; font-size: 13.5px; }
.history-info small { color: #8a7458; font-size: 11.5px; }
.history-status {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.history-status.is-pending   { background: #fff1c8; color: #8a5a14; border: 1px solid #d6bd8b; }
.history-status.is-delivered { background: #dff0d8; color: #2a7a3d; border: 1px solid #93cba8; }
.history-status.is-refunded  { background: #fbeae8; color: #b03a2e; border: 1px solid #e0a7a0; }

/* ============================================================
   PIX (mantém)
   ============================================================ */
.pix-amount { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #efe7d4; border: 1px solid #d6bd8b; border-radius: 3px; margin-bottom: 14px; }
.pix-amount span { font-size: 12px; color: #8a7458; }
.pix-amount strong { font-size: 22px; color: #b03a2e; font-weight: 800; }
.pix-qr { display: flex; justify-content: center; padding: 14px 0; }
.pix-cap { text-align: center; font-size: 12px; color: #8a7458; margin: 0 0 14px; }
.pix-code-wrap { margin: 16px 0; }
.pix-code-wrap label { display: block; font-size: 12.5px; font-weight: 700; color: #3a2f27; margin-bottom: 6px; }
.pix-code-row { display: flex; gap: 8px; }
.pix-code-row code { flex: 1; padding: 10px 14px; background: #fff; border: 1px solid #d6bd8b; border-radius: 3px; font-family: monospace; font-size: 12px; word-break: break-all; }
.pix-instr { font-size: 12.5px; color: #6b5b46; margin: 16px 0; padding: 12px; background: #fff8e4; border-left: 3px solid #d6bd8b; border-radius: 2px; }
.pix-note { font-size: 12px; color: #8a7458; margin: 14px 0 0; }

/* ============================================================
   CÓDIGO DE RESGATE
   ============================================================ */
.code-input {
    display: block;
    width: 100%;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #3a2f27;
    background: #fff;
    border: 2px dashed #d6bd8b;
    border-radius: 3px;
    outline: none;
    font-family: monospace;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.code-input:focus { border-color: #b18648; box-shadow: 0 0 0 3px rgba(177, 134, 72, 0.18); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 920px) {
    .conta-layout { grid-template-columns: 1fr; }
    .conta-side { position: static; }
    .info-cards { grid-template-columns: 1fr; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .chars-table { font-size: 12px; }
    .chars-table th, .chars-table td { padding: 10px 6px; }
}
@media (max-width: 600px) {
    .shop-grid { grid-template-columns: 1fr; }
    .conta-welcome { flex-direction: column; text-align: center; gap: 14px; }
    .cw-buy.header-button { width: 200px; }
    .shop-head { flex-direction: column; align-items: stretch; }
    .shop-search input { width: 100%; }
}
@media (max-width: 768px) {
    .conta-page .pixarts-site-content { padding-bottom: 320px; }
}

/* ---- PÁGINAS DE AUTENTICAÇÃO (login / criar conta / recuperar senha) ----
   Reaproveitam o widget ornamentado do antigo modal (estilo em style.min.css:
   .modal_holder .auth_modal). Aqui só neutralizamos o overlay do modal pra ele
   virar um bloco normal, centralizado, na área de conteúdo da página. */
.modal_holder.pwauth {
    position: static; height: auto; width: 100%; z-index: auto;
    background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
    opacity: 1; pointer-events: auto;
    padding: 6px 0 40px;
}
.pwauth .auth_content .pwauth-err {
    width: 100%; margin-top: 22px; box-sizing: border-box;
    background: rgba(176, 58, 46, .14); border: 1px solid rgba(176, 58, 46, .55);
    color: #8a2a20; border-radius: 6px; padding: 10px 14px;
    font-size: 13px; font-weight: 700; text-align: center;
}
.pwauth .auth_content .pwauth-field-err {
    width: 100%; color: #8a2a20; font-size: 11.5px; font-weight: 700; margin-top: 4px;
}
.pwauth .auth_content .form_field.half .pwauth-field-err { position: static; }
.pwauth .auth_content .pwauth-note {
    width: 100%; margin-top: 22px; color: #463d3a;
    font-size: 13.5px; line-height: 1.7; text-align: center;
}
.pwauth .auth_content .pwauth-note strong { color: #8a5a14; }
.pwauth .auth_content .pwauth-note a { color: #b18648; font-weight: 700; }
/* respiro acima do botão quando não há separador antes dele (estado fechado) */
.pwauth .auth_content .pwauth-note + .addons { margin-top: 8px; }
