@import url('https://fonts.googleapis.com/css2?family=Pirata+One&family=Inter:wght@500;600;700;800;900&display=swap');

:root {
    --pp-bg: #070604;
    --pp-panel: #11100d;
    --pp-panel-2: #17130d;
    --pp-line: #6f4612;
    --pp-line-soft: rgba(240, 164, 28, 0.28);
    --pp-gold: #f6b40b;
    --pp-gold-2: #ffcf26;
    --pp-text: #fff7df;
    --pp-muted: #b9a57d;
    --pp-green: #95e071;
    --pp-red: #ff604c;
}

body.pp-user-body,
body:has(.pp-app) {
    min-width: 1180px;
    background:
        radial-gradient(circle at 20% 0%, rgba(194, 121, 22, 0.22), transparent 28%),
        radial-gradient(circle at 96% 100%, rgba(194, 121, 22, 0.18), transparent 30%),
        linear-gradient(180deg, #030302 0%, #0b0906 58%, #050403 100%) !important;
    color: var(--pp-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.pp-app,
.pp-app * {
    box-sizing: border-box;
}

.pp-app a {
    color: inherit;
    text-decoration: none;
}

.pp-app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 174px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
}

.pp-sidebar {
    position: sticky;
    top: 12px;
    align-self: start;
    min-height: calc(100vh - 24px);
    border: 1px solid var(--pp-line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 194, 50, 0.06), transparent 22%),
        linear-gradient(180deg, #11100d 0%, #070604 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 211, 82, 0.06), 0 14px 34px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.pp-brand {
    height: 66px;
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 7px;
    padding: 10px 11px;
    border-bottom: 1px solid var(--pp-line-soft);
}

.pp-brand-mark {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(246, 180, 11, 0.35));
}

.pp-brand-text,
.pp-logo-text {
    font-family: "Pirata One", Georgia, serif;
    color: var(--pp-gold);
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #000, 0 0 14px rgba(246, 180, 11, 0.32);
    line-height: 1;
}

.pp-brand-text {
    font-size: 25px;
}

.pp-nav {
    padding: 9px 8px;
}

.pp-nav-link {
    height: 30px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 9px;
    border-radius: 5px;
    color: #ead6a9;
    font-size: 11px;
    text-transform: uppercase;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.pp-nav-link:hover,
.pp-nav-link.is-active {
    color: #090703;
    background: linear-gradient(180deg, var(--pp-gold-2), var(--pp-gold));
    transform: translateX(2px);
}

.pp-nav-icon {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.pp-sidebar-bonus {
    margin: 10px 9px 12px;
    padding: 10px;
    min-height: 106px;
    border: 1px solid var(--pp-line);
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.05)),
        url('/load/img/vklad2.png') left bottom / 74px auto no-repeat,
        linear-gradient(180deg, #1a1207, #0c0905);
}

.pp-sidebar-bonus strong {
    display: block;
    margin-left: 70px;
    color: var(--pp-text);
    font-size: 10px;
    text-transform: uppercase;
}

.pp-sidebar-bonus span {
    display: block;
    margin: 3px 0 7px 70px;
    color: var(--pp-gold);
    font-size: 10px;
}

.pp-main {
    min-width: 0;
}

#content.pp-main {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
}

.pp-topbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px));
    gap: 12px;
    margin-bottom: 12px;
}

.pp-logo-card,
.pp-mini-card,
.pp-card {
    border: 1px solid var(--pp-line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 190, 34, 0.055), rgba(255, 190, 34, 0.015)),
        linear-gradient(180deg, var(--pp-panel), #080706);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 14px 28px rgba(0,0,0,.35);
}

.pp-logo-card {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

.pp-logo-card img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.pp-logo-text {
    font-size: 33px;
}

.pp-mini-card {
    min-height: 58px;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 9px;
    align-items: center;
    padding: 8px 12px;
}

.pp-mini-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--pp-line);
    background: #21160a;
    color: var(--pp-gold);
}

.pp-label {
    color: var(--pp-gold);
    font-size: 10px;
    text-transform: uppercase;
}

.pp-value {
    color: var(--pp-text);
    font-size: 16px;
    font-weight: 900;
}

.pp-panel-title {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border-bottom: 1px solid var(--pp-line-soft);
    color: var(--pp-gold);
    font-family: "Pirata One", Georgia, serif;
    font-size: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pp-panel-title img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.pp-breadcrumb {
    display: block;
    margin-top: -4px;
    color: var(--pp-muted);
    font-family: Inter, Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 0;
    text-transform: none;
}

.pp-grid {
    display: grid;
    gap: 12px;
}

.pp-grid-dashboard {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pp-card {
    overflow: hidden;
}

.pp-card-body {
    padding: 14px;
}

.pp-card-span-2 {
    grid-column: span 2;
}

.pp-card-span-3 {
    grid-column: span 3;
}

/* Final dashboard shape: no lower modules, no full-width spread. */
.pp-main,
#content.pp-main {
    width: 1040px !important;
    max-width: calc(100vw - 220px) !important;
    margin: 8px auto 0 !important;
    justify-self: center;
}

.pp-fold-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 8px !important;
    align-items: start;
}

.pp-side-stack {
    display: grid;
    gap: 8px;
}

.pp-mining-compact {
    grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr) !important;
    gap: 7px !important;
    padding: 7px !important;
}

.pp-mining-compact .pp-mascot img {
    max-width: 84px !important;
}

.pp-quick-card .pp-panel-title {
    height: 27px !important;
    font-size: 18px !important;
}

.pp-quick-card .pp-card-body {
    padding: 6px 7px !important;
}

.pp-quick-card .pp-list-row {
    min-height: 25px !important;
    padding: 3px 6px !important;
}

/* Final dashboard shape: no lower modules, no full-width spread. */
.pp-main,
#content.pp-main {
    width: 1040px !important;
    max-width: calc(100vw - 220px) !important;
    margin: 8px auto 0 !important;
    justify-self: center;
}

.pp-fold-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 8px !important;
    align-items: start;
}

.pp-side-stack {
    display: grid;
    gap: 8px;
}

.pp-mining-compact {
    grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr) !important;
    gap: 7px !important;
    padding: 7px !important;
}

.pp-mining-compact .pp-mascot img {
    max-width: 84px !important;
}

.pp-quick-card .pp-panel-title {
    height: 27px !important;
    font-size: 18px !important;
}

.pp-quick-card .pp-card-body {
    padding: 6px 7px !important;
}

.pp-quick-card .pp-list-row {
    min-height: 25px !important;
    padding: 3px 6px !important;
}

/* Final dashboard shape: no lower modules, no full-width spread. */
.pp-main,
#content.pp-main {
    width: 1040px !important;
    max-width: calc(100vw - 220px) !important;
    margin: 8px auto 0 !important;
    justify-self: center;
}

.pp-fold-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 8px !important;
    align-items: start;
}

.pp-side-stack {
    display: grid;
    gap: 8px;
}

.pp-mining-compact {
    grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr) !important;
    gap: 7px !important;
    padding: 7px !important;
}

.pp-mining-compact .pp-mascot img {
    max-width: 84px !important;
}

.pp-quick-card .pp-panel-title {
    height: 27px !important;
    font-size: 18px !important;
}

.pp-quick-card .pp-card-body {
    padding: 6px 7px !important;
}

.pp-quick-card .pp-list-row {
    min-height: 25px !important;
    padding: 3px 6px !important;
}

/* Single-view mining dashboard: left mining card, right quick actions. */
.pp-main,
#content.pp-main {
    width: 1040px !important;
    max-width: calc(100vw - 220px) !important;
}

.pp-topbar {
    grid-template-columns: minmax(260px, 1fr) 170px 160px 160px;
    margin-bottom: 6px;
}

.pp-fold-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 8px;
    align-items: start;
}

.pp-mining-card {
    min-width: 0;
}

.pp-side-stack {
    display: grid;
    gap: 8px;
}

.pp-mining-compact {
    grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
    gap: 7px;
    padding: 7px;
}

.pp-mining-compact .pp-mascot img {
    max-width: 84px;
}

.pp-mining-compact .pp-stat-pill {
    min-height: 32px;
}

.pp-mining-compact .pp-action-box {
    padding: 6px;
}

.pp-mining-compact .pp-action-value {
    font-size: 17px;
}

.pp-info-compact {
    min-height: 0;
    padding: 6px 8px;
    font-size: 8px;
    line-height: 1.35;
    background:
        linear-gradient(180deg, rgba(245, 217, 168, 0.94), rgba(221, 184, 126, 0.92));
}

.pp-quick-card .pp-panel-title {
    height: 27px;
    font-size: 18px;
}

.pp-quick-card .pp-panel-title img {
    width: 20px;
    height: 20px;
}

.pp-quick-card .pp-card-body {
    padding: 6px 7px;
}

.pp-quick-card .pp-list-row {
    min-height: 25px;
    padding: 3px 6px;
}

.pp-quick-card .pp-btn {
    min-height: 22px;
    min-width: 54px;
    padding: 0 10px;
}

.pp-mining-board {
    display: grid;
    grid-template-columns: 1fr 168px 1fr;
    gap: 14px;
    padding: 14px;
    border: 1px solid #8c672e;
    border-radius: 5px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.03)),
        #e6c89a;
    color: #1f1407;
    box-shadow: inset 0 0 12px rgba(69, 36, 0, 0.35);
}

.pp-stat-list {
    display: grid;
    gap: 10px;
}

.pp-stat-pill {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(83, 48, 7, 0.25);
    border-radius: 5px;
    background: rgba(255, 245, 220, 0.64);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.pp-stat-pill span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-transform: none;
}

.pp-stat-pill b {
    font-size: 16px;
    font-weight: 900;
}

.pp-mascot {
    display: grid;
    place-items: center;
}

.pp-mascot img {
    max-width: 150px;
    filter: drop-shadow(0 14px 12px rgba(61, 24, 0, 0.42));
}

.pp-action-stack {
    display: grid;
    gap: 12px;
}

.pp-action-box {
    padding: 10px;
    border: 1px solid rgba(83, 48, 7, 0.25);
    border-radius: 5px;
    background: rgba(255, 245, 220, 0.58);
    text-align: center;
}

.pp-action-box .pp-label {
    color: #2d1b06;
}

.pp-action-value {
    margin: 3px 0 8px;
    color: #1b1105;
    font-size: 25px;
    font-weight: 900;
}

.pp-btn,
.pp-action-button,
.search-btn {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid #d28a00 !important;
    border-radius: 4px !important;
    background: linear-gradient(180deg, #ffd633 0%, #f8b500 52%, #c98200 100%) !important;
    color: #140c02 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 5px 10px rgba(0,0,0,.28);
}

.pp-btn:hover,
.pp-action-button:hover,
.search-btn:hover {
    filter: brightness(1.08);
}

.pp-action-button {
    width: 100%;
}

.pp-info-scroll {
    margin-top: 12px;
    padding: 13px 15px;
    border: 1px solid #8c672e;
    border-radius: 5px;
    background:
        url('/load/img/vklad3.png') right 18px center / 76px auto no-repeat,
        linear-gradient(180deg, rgba(245, 217, 168, 0.94), rgba(221, 184, 126, 0.92));
    color: #1f1407;
    font-size: 12px;
    line-height: 1.9;
    text-transform: uppercase;
}

.pp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.pp-stat-tile {
    min-height: 58px;
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid rgba(240, 164, 28, 0.18);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.025);
}

.pp-stat-tile i {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #21160a;
    color: var(--pp-gold);
}

.pp-stat-tile small {
    display: block;
    color: var(--pp-muted);
    font-size: 9px;
    text-transform: uppercase;
}

.pp-stat-tile b {
    color: var(--pp-text);
    font-size: 16px;
}

.pp-data-table {
    width: 100%;
    color: var(--pp-text);
    font-size: 11px;
}

.pp-data-table th,
.pp-data-table td {
    padding: 8px 9px;
    border-bottom: 1px solid rgba(240, 164, 28, 0.13);
}

.pp-data-table th {
    color: var(--pp-gold);
    font-size: 10px;
    text-transform: uppercase;
}

.pp-data-table td:last-child {
    color: var(--pp-green);
}

.pp-module-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.pp-module-stat {
    padding: 10px 8px;
    border: 1px solid rgba(240, 164, 28, 0.22);
    border-radius: 5px;
    text-align: center;
    background: rgba(255,255,255,.025);
}

.pp-module-stat span {
    display: block;
    color: var(--pp-muted);
    font-size: 9px;
    text-transform: uppercase;
}

.pp-module-stat b {
    display: block;
    margin-top: 4px;
    color: var(--pp-text);
    font-size: 15px;
}

.pp-list {
    display: grid;
    gap: 6px;
}

.pp-list-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    min-height: 30px;
    padding: 6px 9px;
    border-bottom: 1px solid rgba(240, 164, 28, 0.1);
    color: #e8d7b0;
    font-size: 11px;
}

.pp-list-row small {
    display: block;
    color: var(--pp-muted);
    font-size: 9px;
}

.pp-footer {
    margin-top: 12px;
    padding: 14px 18px;
    border-top: 1px solid rgba(240, 164, 28, 0.22);
    color: var(--pp-muted);
    text-align: center;
    font-size: 11px;
}

@media (max-width: 1300px) {
    .pp-grid-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pp-card-span-2,
    .pp-card-span-3 {
        grid-column: span 2;
    }
}

/* Compact dashboard pass: tuned for a 1920x1080 game-control screen. */
body.pp-user-body .backsocblock,
body.pp-user-body #google_translate_element,
body.pp-user-body #google_translate_element2 {
    display: none !important;
}

body.pp-user-body {
    font-size: 12px;
    overflow-x: hidden;
}

.pp-app {
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
}

.pp-sidebar {
    top: 8px;
    min-height: calc(100vh - 16px);
}

.pp-brand {
    height: 52px;
    grid-template-columns: 28px 1fr;
    gap: 6px;
    padding: 7px 9px;
}

.pp-brand-mark {
    width: 27px;
    height: 27px;
}

.pp-brand-text {
    font-size: 22px;
}

.pp-nav {
    padding: 6px;
}

.pp-nav-link {
    height: 25px;
    gap: 7px;
    padding: 0 7px;
    font-size: 9px;
}

.pp-nav-icon {
    width: 14px;
    height: 14px;
}

.pp-sidebar-bonus {
    margin: 7px 6px;
    min-height: 86px;
    padding: 7px;
    background:
        linear-gradient(90deg, rgba(0,0,0,.48), rgba(0,0,0,.12)),
        url('/load/img/vklad2.png') left bottom / 54px auto no-repeat,
        linear-gradient(180deg, #1a1207, #0c0905);
}

.pp-sidebar-bonus strong,
.pp-sidebar-bonus span {
    margin-left: 54px;
    font-size: 8px;
}

.pp-topbar {
    grid-template-columns: minmax(260px, 1fr) 178px 162px 162px;
    gap: 8px;
    margin-bottom: 8px;
}

.pp-logo-card {
    min-height: 42px;
    gap: 8px;
    padding: 6px 10px;
}

.pp-logo-card img {
    width: 28px;
    height: 28px;
}

.pp-logo-text {
    font-size: 28px;
}

.pp-mini-card {
    min-height: 42px;
    grid-template-columns: 24px 1fr;
    gap: 7px;
    padding: 5px 8px;
    min-width: 0;
}

.pp-mini-icon {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.pp-label {
    font-size: 8px;
}

.pp-value {
    font-size: 13px;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pp-panel-title {
    height: 30px;
    gap: 7px;
    padding: 0 10px;
    font-size: 20px;
}

.pp-panel-title img {
    width: 22px;
    height: 22px;
}

.pp-breadcrumb {
    margin-top: -5px;
    font-size: 7px;
}

.pp-grid {
    gap: 8px;
}

.pp-grid-dashboard {
    gap: 8px;
    margin-top: 8px !important;
}

.pp-card-body {
    padding: 8px;
}

.pp-mining-board {
    grid-template-columns: 1fr 100px 1fr;
    gap: 10px;
    padding: 8px;
}

.pp-stat-list {
    gap: 7px;
}

.pp-stat-pill {
    min-height: 36px;
    padding: 5px 9px;
}

.pp-stat-pill span {
    gap: 6px;
    font-size: 10px;
}

.pp-stat-pill b {
    font-size: 13px;
}

.pp-mascot img {
    max-width: 96px;
}

.pp-action-stack {
    gap: 7px;
}

.pp-action-box {
    padding: 7px 8px;
}

.pp-action-value {
    margin: 1px 0 6px;
    font-size: 20px;
}

.pp-btn,
.pp-action-button,
.search-btn {
    min-height: 25px;
    padding: 0 16px;
    font-size: 9px !important;
}

.pp-info-scroll {
    margin-top: 8px;
    min-height: 52px;
    padding: 7px 10px;
    background:
        url('/load/img/vklad2.png') right 14px center / 42px auto no-repeat,
        linear-gradient(180deg, rgba(245, 217, 168, 0.94), rgba(221, 184, 126, 0.92));
    font-size: 9px;
    line-height: 1.45;
}

.pp-stats-row {
    gap: 8px;
    margin-top: 8px;
}

.pp-stat-tile {
    min-height: 40px;
    grid-template-columns: 24px 1fr;
    gap: 7px;
    padding: 6px 8px;
}

.pp-stat-tile i {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.pp-stat-tile small {
    font-size: 7px;
}

.pp-stat-tile b {
    font-size: 13px;
}

.pp-module-stats {
    gap: 6px;
    margin-bottom: 6px;
}

.pp-module-stat {
    min-height: 38px;
    padding: 6px 6px;
}

.pp-module-stat span {
    font-size: 7px;
}

.pp-module-stat b {
    margin-top: 2px;
    font-size: 12px;
}

.pp-list {
    gap: 2px;
}

.pp-list-row {
    min-height: 27px;
    gap: 7px;
    padding: 4px 7px;
    font-size: 9px;
}

.pp-list-row small {
    font-size: 7px;
}

.pp-data-table {
    font-size: 9px;
}

.pp-data-table th,
.pp-data-table td {
    padding: 5px 6px;
}

.pp-data-table th {
    font-size: 7px;
}

.pp-footer {
    display: none;
}

/* Center only: keep the previous Pirate Pay design, limit it like a table. */
.pp-main,
#content.pp-main {
    width: 1100px !important;
    max-width: calc(100vw - 230px) !important;
    margin: 8px auto 0 !important;
    justify-self: center;
}

.pp-card-wide {
    grid-column: 1 / -1;
}

.pp-grid-dashboard {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pp-card-span-2 {
    grid-column: span 2;
}

.pp-card-span-3 {
    grid-column: span 3;
}
