/* FreeRO Pet Mining — chrome mandiri (tidak memakai theme situs lama) */
:root {
    --pm-red: #d32f2f;
    --content-max: min(1180px, calc(100vw - 28px));
    --heading-color: #b71c1c;
    --muted-text: #5a5a5a;
    --divider: #e0e0e0;
    --surface-2-bg: #f7f7f7;
    --status-orange: #e8a04a;
    --status-red: #c62828;
    --card-border: rgba(211,47,47,.28);
    --input-bg: #fff;
    --card-bg: #fff;
    --card-text: #1a1a1a;
    --surface-2-border: #ececec;
    --status-green: #2e7d32;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; }
body.pm-standalone {
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #1f1414 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><rect fill="%231a1010" width="80" height="80"/><circle cx="10" cy="10" r="1" fill="%23332222"/></svg>');
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    font-size: 14px;
}

/* Topbar: brand kiri, menu absolut di tengah viewport, user kanan */
.pm-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    background: rgba(20,10,10,.92);
    border-bottom: 2px solid var(--pm-red);
}
.pm-topbar__brand {
    position: relative;
    z-index: 2;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    font-size: 16px;
    white-space: nowrap;
    flex: 0 0 auto;
}
.pm-topbar__nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    justify-content: center;
    max-width: min(720px, calc(100vw - 280px));
}
.pm-topbar__aside {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-left: auto;
}
.pm-topbar__aside a,
.pm-topbar__nav a {
    color: #f3d5d5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
}
.pm-topbar__aside a:hover,
.pm-topbar__nav a:hover,
.pm-topbar__nav a.is-on {
    background: rgba(211,47,47,.35);
    color: #fff;
}
.pm-topbar__user {
    color: #ffd54f;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

/* Konten halaman di tengah */
.pm-shell {
    flex: 1 1 auto;
    align-self: center;
    width: var(--content-max);
    max-width: calc(100% - 28px);
    margin: 16px auto 28px;
}
.main-box {
    width: 100%;
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px 22px;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 10px 0;
    font-weight: 600;
}
.alert.error { background: #fdecea; color: #8b1d1d; border: 1px solid #f5c6cb; }
.alert.success { background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }
.pm-foot {
    text-align: center;
    color: #cfc0c0;
    font-size: 12px;
    padding: 16px;
}
.pm-auth-box {
    max-width: 440px;
    margin: 40px auto;
    background: #fff;
    border: 2px solid var(--pm-red);
    box-shadow: 0 12px 30px rgba(0,0,0,.28), 0 0 0 4px rgba(211,47,47,.12);
}
.pm-auth-box h2 { margin: 0 0 8px; color: var(--pm-red); }
.pm-auth-sub { color: #555; line-height: 1.5; }
.pm-auth-form { display: grid; gap: 10px; margin-top: 16px; }
.pm-auth-form label { font-size: 12px; font-weight: 700; color: #444; display: grid; gap: 4px; }
.pm-auth-form input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid #b8b8b8;
    background: #fff;
    font-size: 14px;
}
.pm-auth-form input:focus {
    border-color: var(--pm-red);
    outline: 2px solid rgba(211,47,47,.18);
    outline-offset: 1px;
}
.pm-auth-btn {
    margin-top: 6px;
    padding: 11px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--pm-red);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.pm-auth-foot { margin-top: 16px; font-size: 13px; }
.pm-auth-foot a { color: var(--pm-red); }

/* Tombol GM (subset style.css situs lama) */
.btn, .btn-primary, .btn-success, .btn-danger, .btn-info {
    display: inline-block;
    padding: 8px 14px;
    border: 0;
    border-radius: 8px;
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}
.btn { background: #546e7a; }
.btn-primary { background: linear-gradient(180deg, #007bff 0%, #0056b3 100%); }
.btn-success { background: linear-gradient(180deg, #28a745 0%, #218838 100%); }
.btn-danger { background: linear-gradient(180deg, #dc3545 0%, #c82333 100%); }
.btn-info { background: linear-gradient(180deg, #17a2b8 0%, #117a8b 100%); }

.gaming-tab {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 9px;
    background: #f3f3f3;
    color: #444 !important;
    text-decoration: none;
    border: 1px solid #e0e0e0;
}
.gaming-tab.active, .gaming-tab.active:hover {
    background: #d32f2f;
    color: #fff !important;
    border-color: #b71c1c;
}

@media (max-width: 960px) {
    .pm-topbar {
        flex-direction: column;
        align-items: center;
        padding: 12px 14px 14px;
    }
    .pm-topbar__nav {
        position: static;
        left: auto;
        transform: none;
        max-width: 100%;
        order: 3;
        margin-top: 4px;
    }
    .pm-topbar__brand { order: 1; }
    .pm-topbar__aside {
        order: 2;
        margin-left: 0;
        justify-content: center;
    }
}
