/* ==========================================================================
   USER DETAILED PROFILE MODAL - DA VINCI DOSSIER ARCHIVE AESTHETIC
   Otoritatif, anti-hack, Renaissance parchment & polished brass craftsmanship
   Horizontal Paginated Slider (Slide Kiri - Kanan Tanpa Scroll Bawah & Tanpa Bocor)
   ========================================================================== */

.profile-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #100804 url('assets/wood-table.jpg') center center / cover no-repeat !important;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.profile-modal-overlay.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.profile-ledger-box {
    position: relative;
    width: 97% !important;
    max-width: 1740px !important;
    height: 99% !important;
    max-height: 856px !important;
    background: #f4ecd8 url('assets/menu-sketch-lab.jpg') center/cover no-repeat;
    background-blend-mode: soft-light;
    border: 3px double #8a6a43;
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), inset 0 0 100px rgba(78, 53, 31, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    color: #3d2a17;
    font-family: 'Cinzel', 'Georgia', serif;
}

@keyframes dossierUnfurl {
    0% {
        transform: scale(0.92) translateY(20px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Renaissance Brass Ornate Corners */
.pf-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 10;
}

.pf-corner.tl {
    top: 6px;
    left: 6px;
    border-top: 3px solid #d4af37;
    border-left: 3px solid #d4af37;
}

.pf-corner.tr {
    top: 6px;
    right: 6px;
    border-top: 3px solid #d4af37;
    border-right: 3px solid #d4af37;
}

.pf-corner.bl {
    bottom: 6px;
    left: 6px;
    border-bottom: 3px solid #d4af37;
    border-left: 3px solid #d4af37;
}

.pf-corner.br {
    bottom: 6px;
    right: 6px;
    border-bottom: 3px solid #d4af37;
    border-right: 3px solid #d4af37;
}

/* Header Area - Dark Renaissance Brown Leather */
.pf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background-color: #29180b;
    background-image: url('assets/leather-texture-long.jpg');
    background-repeat: repeat-x;
    background-position: center center;
    background-size: 512px 189px;
    border-bottom: 2.5px solid #baa06e;
    box-shadow: inset 0 1px 0 rgba(223, 194, 130, 0.2), inset 0 -3px 8px rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
}

.pf-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.pf-avatar-seal {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, #e6c888 0%, #aa8444 80%, #68481d 100%);
    border: 2px solid #baa06e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c1a0a;
}

.pf-avatar-seal svg {
    width: 28px;
    height: 28px;
}

.pf-main-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fef3c7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
}

.pf-badge-sub {
    display: none !important;
}

.pf-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pf-close-btn {
    background: #1c1007;
    border: 1.5px solid #baa06e;
    border-radius: 6px;
    color: #fef3c7;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    min-height: 45px;
    padding: 0 12px;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.pf-close-btn:hover {
    background: #78350f;
    color: #ffffff;
    border-color: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* Navigation Tabs Bar (Slide Kiri - Kanan) */
.pf-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    background: rgba(226, 212, 185, 0.95);
    border-bottom: 1px solid #aa8444;
    flex-shrink: 0;
}

.pf-tabs-group {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
}

.pf-tab-btn {
    padding: 10px 22px;
    border-radius: 6px;
    border: 1.5px solid rgba(186, 160, 110, 0.55);
    background: rgba(246, 239, 224, 0.12);
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.96rem;
    font-weight: 800;
    color: #f5e6c8;
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pf-tab-btn:hover {
    background: rgba(246, 239, 224, 0.24);
    border-color: #e6c888;
    color: #ffffff;
}

.pf-tab-btn.active {
    background: linear-gradient(180deg, #f3e4c3 0%, #d4b072 100%);
    border-color: #fef3c7;
    color: #241203;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.pf-nav-arrow-group {
    display: none !important;
}

.pf-nav-arrow-btn {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2d2b5;
    border: 1px solid #7c5830;
    color: #3b2512;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.28rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.pf-nav-arrow-btn:hover:not(:disabled) {
    background: #dfcb9f;
    border-color: #4a2b0c;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.pf-nav-arrow-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #d9cdb8;
    border-color: #a4917a;
    box-shadow: none;
}

.pf-page-indicator {
    font-size: 0.76rem;
    font-weight: 700;
    color: #5c3c1a;
    letter-spacing: 0.5px;
    padding: 0 4px;
}

/* ==========================================================================
   VIEWPORT & TRACK (BLOCK CONTAINER, ANTI-SHRINK, ZERO-SCROLLBAR)
   ========================================================================== */
.pf-pages-viewport {
    flex: 1;
    width: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden !important;
    display: block;
    /* Mencegah flexbox child-shrink bug */
}

.pf-pages-track {
    display: flex;
    width: 200%;
    min-width: 200%;
    max-width: 200%;
    height: 100%;
    margin: 0;
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    will-change: transform;
    overflow: hidden !important;
}

.pf-page-view {
    width: 50%;
    min-width: 50%;
    max-width: 50%;
    flex: 0 0 50%; /* STRICT ANTI-SHRINK: 2-Sheet Architecture */
    height: 100%;
    box-sizing: border-box;
    padding: 16px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    overflow: hidden !important;
    /* DILARANG SCROLL KE BAWAH MAUPUN SAMPING */
}

/* Sembunyikan scrollbar di seluruh browser engine */
.pf-pages-viewport,
.pf-pages-track,
.pf-page-view,
.pf-page-2-wrap,
.pf-page-3-wrap,
.pf-comp-grid-full {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.pf-pages-viewport::-webkit-scrollbar,
.pf-pages-track::-webkit-scrollbar,
.pf-page-view::-webkit-scrollbar,
.pf-page-2-wrap::-webkit-scrollbar,
.pf-page-3-wrap::-webkit-scrollbar,
.pf-comp-grid-full::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Identitas Peneliti Banner */
.pf-identity-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: rgba(246, 239, 224, 0.92);
    border: 1.5px solid #b89868;
    border-radius: 6px;
    padding: 14px 24px;
    box-shadow: inset 0 0 12px rgba(120, 85, 45, 0.12);
    flex-shrink: 0;
}

.pf-id-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pf-id-label {
    font-size: 0.85rem;
    color: #7d5930;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.pf-id-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #271609;
    font-family: 'Cinzel', serif;
}

.pf-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46, 125, 50, 0.15);
    border: 1.5px solid #2e7d32;
    color: #1b5e20;
    padding: 6px 16px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.8px;
}

/* Dossier Grid Sections (Page 1) */
.pf-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    flex: 1;
    min-height: 0;
}

.pf-card {
    background: rgba(246, 239, 224, 0.94);
    border: 1.5px solid #b39263;
    border-radius: 6px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 14px;
}

.pf-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #3b200b;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #c9ab7b;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.pf-card-title svg {
    width: 20px;
    height: 20px;
    color: #8a571c;
}

/* Stats Metric Pairs */
.pf-metrics-row {
    display: flex;
    justify-content: space-around;
    gap: 14px;
    flex-shrink: 0;
}

.pf-metric-box {
    flex: 1;
    background: rgba(230, 217, 192, 0.85);
    border: 1.5px solid #9f7d4e;
    border-radius: 6px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(69, 26, 3, 0.08);
}

.pf-metric-number {
    font-size: 1.9rem;
    font-weight: 900;
    color: #211205;
    font-family: 'Cinzel', serif;
    line-height: 1.1;
}

.pf-metric-number.highlight-gold {
    color: #a86c07;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.pf-metric-number.highlight-rank {
    color: #8c2317;
}

/* Global Leaderboard Rank Prestige Frames (Top 1/2/3, Top 50, Top 100) */
.pf-metric-box.pf-rank-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-width: 2px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 4px 12px rgba(43, 25, 10, 0.14);
}

.pf-rank-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
}

.pf-rank-corner.tl { top: 4px; left: 4px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; }
.pf-rank-corner.tr { top: 4px; right: 4px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.pf-rank-corner.bl { bottom: 4px; left: 4px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; }
.pf-rank-corner.br { bottom: 4px; right: 4px; border-bottom: 2px solid currentColor; border-right: 2px solid currentColor; }

.pf-rank-tier-pill {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.9px;
    padding: 2px 10px;
    border-radius: 99px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.pf-rank-box.rank-tier-default {
    color: #8c6a3e;
}

.pf-rank-box.rank-tier-1 {
    background: linear-gradient(155deg, #fff4c2 0%, #f5d36c 48%, #dfb043 100%);
    border-color: #9a6700;
    color: #7c4a03;
    box-shadow: inset 0 0 0 2px rgba(255, 250, 220, 0.7), 0 6px 18px rgba(180, 120, 10, 0.35);
}
.pf-rank-box.rank-tier-1 .pf-rank-tier-pill {
    background: #5c3200;
    color: #fde68a;
    border: 1px solid #f59e0b;
}
.pf-rank-box.rank-tier-1 .highlight-rank {
    color: #5c1905;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.pf-rank-box.rank-tier-2 {
    background: linear-gradient(155deg, #f8fafc 0%, #dbe4ee 50%, #b8c6d8 100%);
    border-color: #475569;
    color: #334155;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75), 0 6px 16px rgba(71, 85, 105, 0.28);
}
.pf-rank-box.rank-tier-2 .pf-rank-tier-pill {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #94a3b8;
}
.pf-rank-box.rank-tier-2 .highlight-rank {
    color: #0f172a;
}

.pf-rank-box.rank-tier-3 {
    background: linear-gradient(155deg, #fde4cf 0%, #e5a979 50%, #c67c48 100%);
    border-color: #7c2d12;
    color: #6c2810;
    box-shadow: inset 0 0 0 2px rgba(255, 236, 214, 0.65), 0 6px 16px rgba(154, 52, 18, 0.28);
}
.pf-rank-box.rank-tier-3 .pf-rank-tier-pill {
    background: #431407;
    color: #fed7aa;
    border: 1px solid #ea580c;
}
.pf-rank-box.rank-tier-3 .highlight-rank {
    color: #431407;
}

.pf-rank-box.rank-tier-50 {
    background: linear-gradient(155deg, #e7f6ee 0%, #c5e6d5 55%, #a7d5be 100%);
    border-color: #166534;
    color: #14532d;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.65), 0 4px 14px rgba(22, 101, 52, 0.2);
}
.pf-rank-box.rank-tier-50 .pf-rank-tier-pill {
    background: #14532d;
    color: #bbf7d0;
    border: 1px solid #22c55e;
}
.pf-rank-box.rank-tier-50 .highlight-rank {
    color: #14532d;
}

.pf-rank-box.rank-tier-100 {
    background: linear-gradient(155deg, #e8f1fb 0%, #c7dcf5 55%, #a7c7ec 100%);
    border-color: #1e40af;
    color: #1e3a8a;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.65), 0 4px 14px rgba(30, 64, 175, 0.18);
}
.pf-rank-box.rank-tier-100 .pf-rank-tier-pill {
    background: #1e3a8a;
    color: #bfdbfe;
    border: 1px solid #3b82f6;
}
.pf-rank-box.rank-tier-100 .highlight-rank {
    color: #1e3a8a;
}

.pf-metric-sub {
    font-size: 0.85rem;
    color: #5c3c1a;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-top: 6px;
}

/* Detailed List Lines - Structured Parchment Ledger Rows */
.pf-details-group {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 12px;
    flex: 1;
    margin-top: 4px;
}

.pf-detail-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    font-size: 1.04rem;
    background: rgba(235, 222, 198, 0.55);
    border: 1px solid rgba(162, 131, 89, 0.4);
    border-radius: 5px;
    transition: all 0.15s ease;
}

.pf-detail-line:hover {
    background: rgba(235, 222, 198, 0.85);
    border-color: #8c5d2e;
}

.pf-detail-line:last-child {
    border-bottom: 1px solid rgba(162, 131, 89, 0.4);
}

.pf-detail-key {
    color: #4a2e15;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.04rem;
}

.pf-detail-val {
    font-weight: 800;
    color: #221206;
    font-size: 1.26rem;
    font-family: 'Cinzel', 'Georgia', serif;
}

/* Sovereign Boss Kills Card (Page 1 Bottom) */
.pf-boss-card-container {
    background: rgba(246, 239, 224, 0.94);
    border: 1.5px solid #b39263;
    border-radius: 6px;
    padding: 14px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.pf-boss-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.pf-boss-card {
    background: rgba(238, 227, 203, 0.95);
    border: 1.5px solid #ad8751;
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.pf-boss-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(78, 53, 31, 0.2);
    border-color: #7b4f17;
}

.pf-boss-badge {
    font-size: 0.82rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.8px;
}

.boss-tier-d {
    background: #8a7a6c;
    color: #fff;
}

.boss-tier-c {
    background: #3f7b58;
    color: #fff;
}

.boss-tier-b {
    background: #2f6991;
    color: #fff;
}

.boss-tier-a {
    background: #7b3d91;
    color: #fff;
}

.boss-tier-s {
    background: #96671a;
    color: #ffeab3;
    border: 1px solid #ffd066;
}

.boss-tier-x {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: #fecaca;
    border: 1px solid #ef4444;
}

.pf-boss-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #2c1a0c;
}

.pf-boss-count {
    font-size: 1.68rem;
    font-weight: 900;
    color: #7b291a;
    font-family: 'Cinzel', serif;
    line-height: 1.1;
}

.pf-boss-count-label {
    font-size: 0.78rem;
    color: #6d4b26;
    text-transform: uppercase;
    font-weight: 700;
}

/* ==========================================================================
   PAGE 2: ARSIP KOMPONEN DRONE (LEMBAR II)
   ========================================================================== */

.pf-page-2-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden !important;
}

.pf-comp-summary-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(246, 239, 224, 0.94);
    border: 1.5px solid #b39263;
    border-radius: 6px;
    padding: 12px 20px;
    box-shadow: inset 0 0 10px rgba(120, 85, 45, 0.08);
    flex-shrink: 0;
}

.pf-comp-stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: #4a2f14;
}

.pf-comp-stat-pill strong {
    font-size: 1.24rem;
    font-weight: 900;
    color: #925c11;
    font-family: 'Cinzel', serif;
}

/* Best 6 Components Symmetrical 3x2 Grid (Page 2) */
.pf-comp-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 14px;
    flex: 1;
    min-height: 0;
    overflow: hidden !important;
}

.pf-comp-card {
    background: rgba(246, 239, 224, 0.96);
    border: 1.5px solid #ad8a57;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
}

.pf-comp-card:hover {
    transform: translateY(-2px);
    border-color: #6b4115;
    box-shadow: 0 4px 10px rgba(60, 40, 20, 0.2);
}

.pf-comp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 0;
}

.pf-comp-name {
    font-size: 1.08rem;
    font-weight: 900;
    color: #271607;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
    letter-spacing: 0.5px;
}

.pf-comp-tier-badge {
    display: none !important;
}

.pf-comp-3d-wrap {
    flex: 1;
    width: 100%;
    min-height: 92px;
    border-radius: 6px;
    background: radial-gradient(circle at center, rgba(44, 26, 12, 0.14) 0%, rgba(44, 26, 12, 0.32) 100%);
    border: 1px solid rgba(138, 106, 67, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pf-comp-3d-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.tier-legend {
    background: #9c6c1d;
    color: #fff2cc;
    border: 1px solid #d4af37;
}

.tier-very_rare {
    background: #6b3882;
    color: #f5e6fc;
}

.tier-rare {
    background: #2a5f85;
    color: #e1f2fc;
}

.tier-great {
    background: #2f6947;
    color: #e4f7eb;
}

.tier-normal {
    background: #6b6357;
    color: #f5f3f0;
}

.pf-comp-body-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    color: #4a2e15;
    margin: 2px 0;
    min-width: 0;
    flex-shrink: 0;
}

.pf-comp-type-text strong {
    font-weight: 900;
    color: #271506;
}

.pf-comp-rank {
    font-size: 1.16rem;
    font-weight: 900;
    color: #8c1e11;
    font-family: 'Cinzel', serif;
    flex-shrink: 0;
}

.pf-comp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    padding-top: 6px;
    border-top: 1.5px dotted rgba(162, 131, 89, 0.55);
    min-width: 0;
    flex-shrink: 0;
}

.pf-comp-qty-text strong {
    font-weight: 900;
    font-size: 1.0rem;
    color: #1c0f04;
}

.pf-comp-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.84rem;
    white-space: nowrap;
    letter-spacing: 0.4px;
}

.status-equipped {
    background: rgba(43, 107, 61, 0.15);
    color: #215c32;
    border: 1px solid #2d7340;
}

.status-storage {
    background: rgba(100, 80, 60, 0.15);
    color: #533e2a;
    border: 1px dashed #7a5e42;
}

/* Page Dots Indicator (Top Nav Bar) */
.pf-page-dots {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 0 4px;
}

.pf-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #bfa482;
    border: 1px solid #7c5830;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pf-dot.active {
    background: #7c2d12;
    transform: scale(1.25);
    border-color: #4a1505;
}

/* Loading & Empty State */
.pf-loading-wrap {
    padding: 60px 20px;
    text-align: center;
    font-size: 0.95rem;
    color: #634320;
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 100%;
}

.pf-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(138, 106, 67, 0.3);
    border-top-color: #8a6a43;
    border-radius: 50%;
    animation: pfSpin 0.9s linear infinite;
}

@keyframes pfSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   PAGE 3: RIWAYAT PERTEMPURAN & EKSPEDISI (LEMBAR III)
   ========================================================================== */

.pf-page-3-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden !important;
}

.pf-hist-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(246, 239, 224, 0.94);
    border: 1.5px solid #b39263;
    border-radius: 6px;
    padding: 12px 18px;
    box-shadow: inset 0 0 10px rgba(120, 85, 45, 0.08);
    flex-shrink: 0;
}

.pf-hist-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pf-hist-filter-btn {
    padding: 9px 18px;
    border-radius: 6px;
    border: 1.5px solid #8a6a43;
    background: #efe3ca;
    color: #4a2e15;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pf-hist-filter-btn:hover {
    background: #e3d0ab;
    border-color: #5c3a18;
}

.pf-hist-filter-btn.active {
    background: #2c180a;
    border-color: #d4af37;
    color: #fef3c7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.pf-hist-table-box {
    flex: 1;
    min-height: 0;
    background: rgba(246, 239, 224, 0.95);
    border: 1.5px solid #b39263;
    border-radius: 6px;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

.pf-hist-table {
    width: 100%;
    height: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.pf-hist-table thead th {
    background: #2c180a;
    color: #fef3c7;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-align: left;
    padding: 13px 16px;
    border-bottom: 2px solid #baa06e;
}

.pf-hist-table tbody tr {
    border-bottom: 1.5px solid rgba(166, 132, 84, 0.45);
    transition: background 0.15s ease;
    height: 20%;
}

.pf-hist-table tbody tr:hover {
    background: rgba(230, 214, 184, 0.65);
}

.pf-hist-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 1.05rem;
    color: #291607;
}

.pf-hist-mode-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pf-hist-mode-pill {
    display: inline-block;
    width: fit-content;
    padding: 4px 11px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.6px;
}

.pf-hist-mode-pill.mode-pvp {
    background: #7f1d1d;
    border: 1.5px solid #d4af37;
    color: #fef3c7;
}

.pf-hist-mode-pill.mode-bg-ai {
    background: #1e3a8a;
    border: 1.5px solid #d4af37;
    color: #fef3c7;
}

.pf-hist-mode-pill.mode-mission {
    background: #3f230d;
    border: 1.5px solid #b48a4e;
    color: #fde68a;
}

.pf-hist-sub-text {
    font-size: 0.98rem;
    font-weight: 800;
    color: #4a2e15;
}

.pf-hist-tier-cp {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pf-hist-tier-tag {
    display: inline-block;
    width: fit-content;
    padding: 3px 10px;
    border-radius: 5px;
    background: #d9c398;
    border: 1.5px solid #8a6432;
    font-size: 0.92rem;
    font-weight: 900;
    color: #2c1606;
}

.pf-hist-cp-val {
    font-size: 1.04rem;
    font-weight: 900;
    color: #3b210c;
}

.pf-result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pf-result-badge.win {
    background: #14532d;
    border: 1.5px solid #4ade80;
    color: #ffffff;
}

.pf-result-badge.loss {
    background: #7f1d1d;
    border: 1.5px solid #f87171;
    color: #ffffff;
}

.pf-result-badge.draw {
    background: #78350f;
    border: 1.5px solid #fbbf24;
    color: #fef3c7;
}

.pf-hist-kda {
    font-size: 1.06rem;
    font-weight: 800;
    color: #3b210c;
}

.pf-hist-kda strong {
    font-weight: 900;
    font-size: 1.12rem;
    color: #1a0c02;
}

.pf-hist-reward-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pf-hist-pts {
    font-size: 1.05rem;
    font-weight: 900;
    color: #1e3a8a;
}

.pf-hist-gold {
    font-size: 1.02rem;
    font-weight: 900;
    color: #92400e;
}

.pf-hist-gold-muted {
    font-size: 0.94rem;
    font-weight: 800;
    color: #6b4c2b;
}

.pf-hist-time-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pf-hist-dur {
    font-size: 1.06rem;
    font-weight: 900;
    color: #271506;
}

.pf-hist-date {
    font-size: 0.92rem;
    font-weight: 700;
    color: #5c3c1a;
}

.pf-hist-empty-cell {
    text-align: center;
    padding: 48px 20px !important;
    font-size: 1.1rem !important;
    font-style: italic;
    font-weight: 800;
    color: #6b4d29 !important;
}

.pf-hist-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 8px 18px;
    background: rgba(235, 222, 198, 0.85);
    border: 1.5px solid #b39263;
    border-radius: 6px;
    flex-shrink: 0;
}

.pf-hist-page-btn {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    border: 1.5px solid #7c5830;
    background: #2c180a;
    color: #fef3c7;
    font-size: 1.15rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pf-hist-page-btn:hover:not(:disabled) {
    background: #78350f;
    border-color: #d4af37;
}

.pf-hist-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pf-hist-page-indicator {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 900;
    color: #3b210c;
}

