
:root {
    --primary: #d9689c;
    --primary-dark: #b9507f;
    --secondary: #5b8fd9;
    --secondary-dark: #4776bb;
    --green: #4bad7f;
    --green-dark: #3a8d66;
    --yellow: #d4a93f;
    --red: #d4545f;
    --red-dark: #b0424c;

    --bg: #121316;
    --surface: #1a1c20;
    --surface-2: #22252a;
    --border-color: #2c3037;
    --text: #e6e8eb;
    --muted: #8c929c;
    --card-bg: var(--surface);

    --radius-lg: 8px;
    --radius-md: 6px;
}

::selection { background: var(--primary); color: #fff; }

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .logo {
    font-family: 'Poppins', 'Inter', sans-serif;
    letter-spacing: 0;
}


.custom-navbar {
    background: var(--surface);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50 !important;
}
.logo {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-links { display: flex; gap: 2px; }
.nav-link {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px !important;
    border-radius: var(--radius-md);
    transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.user-badge {
    background: var(--surface-2);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    border: 1px solid var(--border-color);
}


.hero {
    text-align: left;
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    background: var(--surface);
}
.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}
.hero p {
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 400;
    max-width: 560px;
    margin: 0;
}

.item-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: border-color .15s ease, background .15s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.item-card:hover {
    border-color: #454a54;
    background: #1d2024;
}
.item-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--muted);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-2);
}
.item-image img { width: 100%; height: 100%; object-fit: cover; }

.item-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }

.item-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    border: 1px solid transparent;
}
.cat-adopt_me { background: rgba(217,104,156,.12); color: #e58db6; border-color: rgba(217,104,156,.35); }
.cat-robux    { background: rgba(75,173,127,.12);  color: #6dc79b; border-color: rgba(75,173,127,.35); }
.cat-other    { background: rgba(91,143,217,.12);  color: #8db1e6; border-color: rgba(91,143,217,.35); }

.item-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.item-desc { color: var(--muted); font-size: 0.9rem; flex: 1; font-weight: 400; line-height: 1.5; }
.item-price {
    font-weight: 600;
    color: var(--text);
    font-size: 1.2rem;
    font-family: 'Poppins', 'Inter', sans-serif;
    margin: 8px 0 12px;
}

.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--radius-md);
    padding: 9px 20px;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s;
}
.btn-3d {
    background: var(--secondary);
    color: #fff !important;
    border-color: var(--secondary);
}
.btn-3d:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); }

.btn-green-3d {
    background: var(--green);
    color: #fff !important;
    border-color: var(--green);
    width: 100%;
}
.btn-green-3d:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff !important; }

.btn-danger-3d {
    background: var(--red);
    color: #fff !important;
    border-color: var(--red);
}
.btn-danger-3d:hover { background: var(--red-dark); border-color: var(--red-dark); }

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}
.auth-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border-color);
}
.auth-card h2 { text-align: left; color: var(--text); font-size: 1.6rem; font-weight: 600; margin-bottom: 4px; }
.auth-card .subtitle { text-align: left; color: var(--muted); font-weight: 400; margin-bottom: 28px; }

.form-control {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 11px 14px;
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
    border-color: var(--secondary);
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(91,143,217,.2);
}
.form-control::placeholder { color: #596070; }
.form-label { color: var(--muted); font-weight: 500; font-size: 0.88rem; }


.table-wrap {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.table {
    margin-bottom: 0;
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border-color);
    --bs-table-hover-bg: rgba(255,255,255,.025);
    --bs-table-hover-color: var(--text);
    color: var(--text);
}
.table th {
    background: var(--surface-2);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    font-weight: 600;
}
.table td {
    vertical-align: middle;
    font-weight: 400;
    padding: 13px 16px;
    border-color: var(--border-color);
    background: transparent;
    color: var(--text);
}
.badge-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.78rem;
    border: 1px solid transparent;
}
.status-pending   { background: rgba(212,169,63,.12); color: #e3c067; border-color: rgba(212,169,63,.35); }
.status-completed { background: rgba(75,173,127,.12); color: #6dc79b; border-color: rgba(75,173,127,.35); }
.status-cancelled { background: rgba(212,84,95,.12);  color: #e8848c; border-color: rgba(212,84,95,.35); }


.alert {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--text);
    box-shadow: none;
}
.alert-success { border-left: 3px solid var(--green); }
.alert-danger  { border-left: 3px solid var(--red); }
.alert-warning { border-left: 3px solid var(--yellow); }
.alert-info    { border-left: 3px solid var(--secondary); }

a { color: var(--secondary); }
a:hover { color: #8db1e6; }

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    color: var(--muted);
    font-weight: 400;
    margin-top: auto;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2f343c; border-radius: 6px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3c424c; }

@media (max-width: 576px) {
    .auth-card { padding: 26px 20px; }
    .hero { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}


h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', 'Inter', sans-serif !important; }


.bg-white, .bg-light {
    background-color: var(--surface) !important;
    color: var(--text) !important;
}
.badge.bg-light {
    background-color: var(--surface-2) !important;
    color: var(--muted) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px;
    font-weight: 500;
}
.text-dark { color: var(--text) !important; }
.text-muted, .text-secondary { color: var(--muted) !important; }


.rounded-pill, .rounded-4, .rounded-3 { border-radius: var(--radius-md) !important; }
.shadow-sm, .shadow { box-shadow: none !important; }
.border-2, .border-3 { border-width: 1px !important; }
.fw-bold { font-weight: 600 !important; }


.text-center.py-5.bg-white {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
}
.text-center.py-5.bg-white h3 { font-size: 1.1rem; font-weight: 500 !important; }


.btn-outline-primary,
.btn-outline-danger,
.btn-outline-secondary {
    background: transparent;
    border-width: 1px !important;
    font-weight: 600;
}
.btn-outline-primary { color: var(--secondary); border-color: var(--border-color); }
.btn-outline-primary:hover { background: var(--surface-2); color: var(--text); border-color: #454a54; }
.btn-outline-danger { color: #e8848c; border-color: rgba(212,84,95,.5); }
.btn-outline-danger:hover { background: var(--red); border-color: var(--red); color: #fff; }


.btn-3d.btn-primary,
.btn-3d.btn-primary:hover,
.btn-3d.btn-primary:focus { color: #fff !important; }
.btn-3d.btn-primary { background: var(--secondary); border-color: var(--secondary); }
.btn-3d.btn-primary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); }


.btn-secondary:disabled,
.btn-secondary[disabled] {
    background: var(--surface-2);
    border-color: var(--border-color);
    color: var(--muted);
    opacity: 1;
}


.text-primary { color: var(--secondary) !important; }
.text-success { color: var(--green) !important; }
.text-warning { color: var(--yellow) !important; }
.text-danger  { color: #e8848c !important; }


.btn-sm { padding: 6px 12px; font-size: 0.82rem; }


.navbar-toggler { border-color: var(--border-color); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(91,143,217,.25); }
.navbar-toggler-icon { filter: invert(1) opacity(.7); }
.btn-close { filter: invert(1) grayscale(1) brightness(1.5); }


.form-select {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 11px 14px;
    color: var(--text);
    background-color: var(--bg);
    font-weight: 400;
}
.form-select:focus {
    border-color: var(--secondary);
    background-color: var(--bg);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(91,143,217,.2);
}
textarea.form-control { resize: vertical; }