/* WRAPPER */
.cp-wrapper {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0), rgba(10, 10, 15, 0));
    min-height: 100vh;
    padding: 35px;
    margin-top: 50px;
}

/* BOX CENTRAL */
.cp-box {
    max-width: 1450px;
    margin: auto;
    display: flex;
    gap: 22px;
}

/* SIDEBAR BOX */
.cp-sidebar {
    width: 270px;
    background: rgba(12, 17, 23, 0.95);
    border-radius: 22px;
    padding: 22px;
    border: 1px solid rgba(120,170,255,0.15);
    backdrop-filter: blur(14px);
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.15),
        inset 0 0 8px rgba(0, 255, 255, 0.05);
}

/* USER */
.cp-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.cp-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(120,170,255,0.35);
}

.cp-name {
    font-weight: 700;
    color: white;
}

.cp-sub {
    font-size: 12px;
    color: rgba(220, 240, 255, 0.85);
}

/* MINI CARDS */
.cp-mini-cards {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.cp-mini {
    flex: 1;
    background: linear-gradient(145deg, rgba(20,20,25,0.9), rgba(10,10,15,0.9));
    border-radius: 14px;
    padding: 10px;
    text-align: center;
    border: 1px solid rgba(120,170,255,0.18);
}

.cp-mini strong {
    display: block;
    color: #00ff9c;
    font-size: 18px;
}

/* MENU */
.cp-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    color: rgba(220, 240, 255, 0.85);
    cursor: pointer;
    transition: 0.2s;
    font-size: 15px;
}

.cp-item:hover {
    
    background: rgba(0,255,255,0.25);
    color: #fff;
    opacity: 1;
    transform: translateX(3px);
}

.cp-item.active {
    background: rgba(0,255,255,0.25);
    color: #00ffff;
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.15),
        inset 0 0 8px rgba(0, 255, 255, 0.05);
}

/* CONTENT */
.cp-content {
    flex: 1;
}
.cp-menu a {
    text-decoration: none;
}

/* INFO GRID */
.cp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.cp-info-card {
    background: rgba(12, 17, 23, 0.95);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(120,170,255,0.15);
    position: relative;
}

.cp-info-card small {
    color: rgba(220, 240, 255, 0.85);
    font-size: 13px;
}

.cp-info-card strong {
    display: block;
    color: white;
    margin-top: 4px;
    font-size: 16px;
}

/* BADGE */
.cp-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 20px;
}

.cp-badge.verified {
    background: rgba(0,255,170,0.15);
    color: #00ff9c;
    border: 1px solid rgba(0,255,170,0.35);
}


/* ===== ACCOUNT TABLE ? CARD STYLE ===== */

.accgrid-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 14px;
    background: none;
}

.accgrid-table tr {
    background: none !important;
}

.accgrid-table tr {
    display: grid;
    grid-template-columns: 180px 1fr 180px 1fr;
    background: rgba(12, 17, 23, 0.95);
    border: 1px solid rgba(80, 140, 255, 0.2);
    box-shadow:
        0 0 18px rgba(0, 140, 255, 0.12),
        inset 0 0 12px rgba(255,255,255,0.03);
    overflow: hidden;
    transition: 0.25s ease;
}

.accgrid-table tr:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 28px rgba(0, 140, 255, 0.25),
        inset 0 0 14px rgba(255,255,255,0.05);
}

.accgrid-table th {
    padding: 16px 18px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #d6e1ff;
    background: rgba(12, 17, 23, 0.95);
}

.accgrid-table td {
    padding: 16px 18px;
    font-size: 14px;
    color: #d6e1ff;
    background: linear-gradient(145deg, rgba(20,20,25,0.9), rgba(10,10,15,0.9));
}

.accgrid-table td,
.accgrid-table th {
    border: none !important;
}

.accgrid-table td a {
    color: #6ea8ff;
    text-decoration: none;
}

.accgrid-table td a:hover {
    color: #9fc4ff;
    text-shadow: 0 0 6px rgba(80,140,255,0.35);
}

/* ===== BADGES ===== */

.accgrid-account-state {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.accgrid-state-pending {
    background: rgba(255, 180, 0, 0.15);
    color: #ffcc66;
    border: 1px solid rgba(255,180,0,0.3);
}

.accgrid-state-banned {
    background: rgba(255, 60, 60, 0.15);
    color: #ff7b7b;
    border: 1px solid rgba(255,60,60,0.3);
}

.accgrid-state-unknown {
    background: rgba(120,120,120,0.15);
    color: #bbb;
}

/* ===== NOT APPLICABLE ===== */

.accgrid-not-applicable {
    opacity: 0.5;
    font-style: italic;
}

/* ===== FORMS ===== */

.accgrid-table textarea,
.accgrid-table input,
.accgrid-table .form-control {
    width: 100%;
    background: rgba(15, 22, 38, 0.9);
    border: 1px solid rgba(80, 140, 255, 0.25);
    color: #d6e1ff;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 6px;
}

.accgrid-table textarea:focus,
.accgrid-table input:focus {
    outline: none;
    border-color: rgba(80, 140, 255, 0.6);
    box-shadow: 0 0 10px rgba(80,140,255,0.25);
}

.accgrid-table input[type="submit"] {
    background: linear-gradient(135deg, #2b6cff, #1740a8);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.accgrid-table input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(80,140,255,0.35);
}

/* colspan fix */
.accgrid-table td[colspan] {
    grid-column: span 3;
    padding: 20px;
}

/* ===== MOBILE ===== */

/* ======================================= */
/* RESPONSIVO */
/* ======================================= */

@media (max-width: 900px) {

    .cp-wrapper {
        padding: 16px;
        margin-top: 18px;
    }

    .cp-box {
        flex-direction: column;
        gap: 14px;
    }

    .cp-sidebar {
        width: 100%;
    }

    /* Logo menor */
    img[width="300"] {
        width: 180px;
        max-width: 80%;
    }

    /* ======================================= */
    /* ACCGRID ? modo CARD */
    /* ======================================= */

    .accgrid-table,
    .accgrid-table tbody,
    .accgrid-table tr,
    .accgrid-table th,
    .accgrid-table td {
        display: block !important;
        width: 100% !important;
    }

    .accgrid-table {
        border: none;
    }

    .accgrid-table tr {
        background: linear-gradient(145deg, rgba(20,25,40,0.95), rgba(10,12,20,0.95));
        border-radius: 18px;
        padding: 14px 16px;
        margin-bottom: 14px;
        border: 1px solid rgba(122,162,255,0.12);
        box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    }

    /* Labels */
    .accgrid-table th {
        padding: 6px 3px 2px !important;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .4px;
        text-transform: uppercase;
        color: #7aa2ff;
        background: none !important;
        border: none !important;
    }

    /* Valores */
    .accgrid-table td {
        padding: 10px 10px 10px !important;
        font-size: 14px;
        font-weight: 500;
        color: rgba(255,255,255,0.88);
        border: none !important;
    }

    /* Separação entre blocos */
    .accgrid-table td:not(:last-child) {
        border-bottom: 1px solid rgba(255,255,255,0.06);
        margin-bottom: 6px;
    }

    /* Links dentro da tabela */
    .accgrid-table a {
        word-break: break-word;
    }

    /* Estados */
    .accgrid-account-state {
        display: inline-block;
        margin-top: 4px;
    }

    /* ======================================= */
    /* Tabelas grandes ? scroll horizontal */
    /* ======================================= */

    .table-responsive,
    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        border-radius: 12px;
    }

    /* Scrollbar discreta */
    .table::-webkit-scrollbar {
        height: 6px;
    }

    .table::-webkit-scrollbar-thumb {
        background: rgba(122,162,255,0.35);
        border-radius: 10px;
    }

    /* ======================================= */
    /* Tipografia geral */
    /* ======================================= */

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
    }
}


/* ======================================= */
/* TELAS PEQUENAS (celulares menores) */
/* ======================================= */

@media (max-width: 520px) {

    .cp-wrapper {
        padding: 12px;
    }

    img[width="300"] {
        width: 150px;
    }

    .accgrid-table tr {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .accgrid-table th {
        font-size: 10px;
    }

    .accgrid-table td {
        font-size: 13px;
    }

    h2 {
        font-size: 20px;
    }
}

.cp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.cp-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: 0.75;
  transition: 0.2s ease;
}

.cp-item:hover svg {
  opacity: 1;
  transform: scale(1.12);
}

.cp-item.active svg {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(0,255,200,.35));
}


/* CARD BASE */
.char-card {
    margin-bottom: 15px;
}

.char-card-inner {
    background: rgba(12, 17, 23, 0.95);
    border-radius: 14px;
    padding: 15px;
    transition: 0.3s;
    border: 1px solid #222;
    overflow: hidden;
}

.char-card-inner:hover {
    transform: translateY(-3px);
}

/* HEADER */
.char-header {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.char-card-sprite img {
    height: 70px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.2));
}

.char-main-info {
    flex: 1;
}

.char-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-name {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.char-basic {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
}

.char-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.char-status.online {
    background: #1f7a3f;
    color: #9cffc3;
}

.char-status.offline {
    background: #5a1f1f;
    color: #ff9c9c;
}

.expand-icon {
    font-size: 14px;
    transition: 0.3s;
}

.char-card.active .expand-icon {
    transform: rotate(180deg);
}

/* EXPAND */
.char-expand {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    margin-top: 10px;
}

/* GRID INFO */
.char-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.info-box {
    background: #101010;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
}

.info-box small {
    opacity: 0.6;
    display: block;
}

.info-box strong {
    font-size: 14px;
}

/* STATUS */
.status-block {
    margin-bottom: 12px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 4px;
}

.bar {
    position: relative;
    width: 100%;
    height: 22px;
    background: #0d0d0d;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
}

.bar-fill {
    position: relative;
    height: 100%;
    border-radius: 40px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
}

/* REMOVE qualquer display estranho herdado */
.status-block {
    width: 100%;
}

/* Brilho animado */
.bar-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -50%; }
    100% { left: 120%; }
}

/* HP */
/* HP */
.hp-bar .bar-fill {
    background: linear-gradient(90deg, #1a7f1a, #4cff4c);
    box-shadow: 0 0 10px rgba(0,255,0,0.5);
}

/* SP */
.sp-bar .bar-fill {
    background: linear-gradient(90deg, #002c8b, #2d6bff);
    box-shadow: 0 0 8px rgba(0,120,255,0.4);
}

.char-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Responsivo */
@media (max-width: 768px) {
    .char-grid {
        grid-template-columns: 1fr;
    }
}
.char-card-sprite {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.char-card-sprite img {
    height: 75px;
    image-rendering: pixelated;
    animation: floatSprite 2.5s ease-in-out infinite;
}

@keyframes floatSprite {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0px); }
}
/* ONLINE */
.char-card-inner.is-online {
    box-shadow:
        0 0 0 1px rgba(0,255,120,0.4),
        0 0 18px rgba(0,255,120,0.25);
    border: 1px solid rgba(0,255,120,0.4);
}

/* OFFLINE */
.char-card-inner.is-offline {
    opacity: 0.85;
}

.total-zeny-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(145deg, #141414, #1c1c1c);
    border: 1px solid rgba(255, 200, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 200, 0, 0.08);
    transition: 0.3s ease;
}

.total-zeny-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 200, 0, 0.2);
}

.zeny-icon {
    font-size: 22px;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
}

.zeny-info small {
    display: block;
    font-size: 12px;
    opacity: 0.6;
}

.zeny-info strong {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 0.5px;
}
.total-cash-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(145deg, #141414, #1c1c1c);
    border: 1px solid rgba(0, 180, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 180, 255, 0.08);
    transition: 0.3s ease;
}

.total-cash-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 180, 255, 0.25);
}

.cash-icon {
    font-size: 22px;
    filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.6));
}

.cash-info small {
    display: block;
    font-size: 12px;
    opacity: 0.6;
}

.cash-info strong {
    font-size: 18px;
    font-weight: 700;
    color: #00c8ff;
    letter-spacing: 0.5px;
}
.currency-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cash-history-box {
    background: rgba(12, 17, 23, 0.95);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 18px;
    margin-top: 20px;
    transition: 0.3s ease;
}

.cash-history-box:hover {
    border-color: #333;
}

.cash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cash-header h3 {
    font-size: 24px;
}
.cash-count {
    color: #888;
    font-size: 14px;
    margin-left: 6px;
}

.cash-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.arrow {
    display: inline-block;
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* SETA GIRA */
.cash-history-box.active .arrow {
    transform: rotate(180deg);
}

/* CONTEÚDO */
.cash-history-content {
    overflow: hidden;
    transition: height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
    height: 0;
}

.cash-history-box.active .cash-history-content {
    opacity: 1;
    height: auto; /* ?? permite iniciar aberto */
}
/* Glow se última ação foi ganho */
.cash-history-box.last-gain {
    box-shadow: 0 0 25px rgba(0, 255, 120, 0.15);
    border-color: rgba(0, 255, 120, 0.3);
}

/* Glow se última ação foi gasto */
.cash-history-box.last-spend {
    box-shadow: 0 0 25px rgba(255, 60, 60, 0.15);
    border-color: rgba(255, 60, 60, 0.3);
}
.cash-summary {
    font-size: 14px;
    margin-left: 10px;
}

.cash-summary .gain {
    color: #00ff88;
}

.cash-summary .spend {
    color: #ff4d4d;
}

.cash-summary .divider {
    color: #666;
    margin: 0 4px;
}
.cash-history-content {
    max-height: 350px;
    overflow-y: auto;
}

/* Scrollbar Custom */
.cash-history-content::-webkit-scrollbar {
    width: 6px;
}

.cash-history-content::-webkit-scrollbar-track {
    background: #111;
}

.cash-history-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.cash-history-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.cash-filters {
    display: flex;
    gap: 8px;
    margin: 15px 0;
}

.filter-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #aaa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.25s ease;
}
.filter-btn.active {
    background: #2a2a2a;
    border-color: #555;
    color: #fff;
}
/* HEADER DA "TABELA" */
.cash-table-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr;
    padding: 10px 14px;
    font-size: 12px;
    text-transform: uppercase;
    color: #777;
    border-bottom: 1px solid #333;
    margin-bottom: 8px;
}

/* LINHAS */
.cash-history-list li {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr;
    align-items: center;
    padding: 14px;
    background: #181818;
    border: 1px solid #222;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: 0.25s ease;
    font-size: 13px;
}

.cash-history-list li:hover {
    background: #1f1f1f;
    transform: translateY(-2px);
}

/* COLUNAS */
.col-amount {
    text-align: right;
    font-weight: bold;
}

li.gain .col-amount {
    color: #00ff88;
}

li.spend .col-amount {
    color: #ff4d4d;
}

.cash-left {
    flex: 1;
}

.cash-center {
    flex: 1;
    text-align: center;
}

.cash-right {
    font-weight: bold;
    font-size: 15px;
}

li.gain .cash-right {
    color: #00ff88;
}

li.spend .cash-right {
    color: #ff4d4d;
}

ol, ul {
padding-left: none;
}

.storage-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow-x: auto; /* permite scroll horizontal suave */
    background: #111;
    border: 1px solid rgba(255,255,255,0.05);
}

/* HEADER E LINHAS */
.storage-header,
.storage-row {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    min-width: 1100px; /* evita quebrar layout */
}

/* HEADER */
.storage-header {
    background: linear-gradient(to right, #0f1a25, #0a1016);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* LINHAS */
.storage-row {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: 0.2s;
}

.storage-row:hover {
    background: rgba(255,255,255,0.03);
}

/* ===== COLUNAS FLEX ===== */

/* ID */
.storage-header > div:nth-child(1),
.storage-row > div:nth-child(1) {
    width: 90px;
    flex-shrink: 0;
}

/* ITEM (flexível) */
.storage-header > div:nth-child(2),
.storage-row > div:nth-child(2) {
    flex: 1;
    min-width: 250px;
}

/* QTD */
.storage-header > div:nth-child(3),
.storage-row > div:nth-child(3) {
    width: 80px;
    text-align: center;
}

/* IDENT / BROKEN */
.storage-header > div:nth-child(4),
.storage-header > div:nth-child(5),
.storage-row > div:nth-child(4),
.storage-row > div:nth-child(5) {
    width: 100px;
    text-align: center;
}

/* CARDS */
.storage-header > div:nth-child(n+6):nth-child(-n+9),
.storage-row > div:nth-child(n+6):nth-child(-n+9) {
    width: 90px;
    text-align: center;
}

/* OPTIONS */
.rndopt-cell {
    min-width: 180px;
    padding: 0 10px;
}

/* EXTRA */
.storage-header > div:last-child,
.storage-row > div:last-child {
    width: 100px;
    text-align: center;
}

/* ===== ITEM VISUAL ===== */

.item-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-icon {
    width: 28px;
    height: 28px;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.refine {
    color: gold;
    font-weight: bold;
}

.slots {
    opacity: 0.6;
}

.yes {
    color: #00ff9d;
}

.no {
    color: #ff4d4d;
}

.not-applicable {
    opacity: 0.4;
}

