:root {
    --bg: #050505;
    --bg-2: #090909;
    --panel: #101010;
    --panel-2: #161616;
    --border: #2a1212;
    --border-soft: #221010;
    --text: #f5f5f5;
    --muted: #a3a3a3;
    --link: #f5d0d0;
    --accent: #7f1d1d;
    --accent-2: #991b1b;
    --accent-3: #b91c1c;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(127, 29, 29, 0.10), transparent 30%),
        linear-gradient(180deg, #020202 0%, #060606 100%);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: white;
    text-decoration: none;
}

header {
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(6px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.15rem 1rem;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 0.02em;
    color: #fff;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-row {
    margin-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-left {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-left a {
    color: var(--link);
    font-weight: 700;
}

.nav-left a:hover {
    color: white;
}

.nav-button {
    background: none;
    border: none;
    color: var(--link);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.nav-button:hover {
    color: white;
}

main {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1rem 3rem;
}

.hero,
.card,
.form-card,
.login-card {
    background: linear-gradient(180deg, rgba(16,16,16,0.98) 0%, rgba(11,11,11,0.98) 100%);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 1.1rem;
    box-shadow: 0 0 0 1px rgba(127, 29, 29, 0.05), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero {
    margin-bottom: 1rem;
    padding: 1.4rem;
    border-color: #3a1313;
}

.hero h1 {
    margin-top: 0;
}

.hero p {
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.card {
    padding: 0;
    overflow: hidden;
}

.card img,
.placeholder {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #050505;
    border-bottom: 1px solid #2a1212;
}

.placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
}

.card-body {
    padding: 1rem;
}

.card h2 {
    margin: 0.7rem 0 1rem;
    font-size: 1.15rem;
}

.category {
    display: inline-block;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: #170909;
    border: 1px solid #4a1717;
    color: #f0b4b4;
    font-size: 0.82rem;
}

.open-link,
button {
    display: inline-block;
    padding: 0.75rem 1rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

.open-link:hover,
button:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: white;
}

.form-card,
.login-card {
    max-width: 600px;
    margin: 0 auto;
}

input,
textarea,
select {
    width: 100%;
    background: #0b0b0b;
    color: var(--text);
    border: 1px solid #303030;
    border-radius: 10px;
    padding: 0.7rem;
    margin-top: 0.35rem;
}

form {
    display: grid;
    gap: 0.9rem;
}

label {
    font-weight: 700;
    color: #e5e5e5;
}

.empty-state {
    border: 1px dashed #3b1b1b;
    border-radius: 14px;
    padding: 1rem;
    color: var(--muted);
    background: rgba(255,255,255,0.01);
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.category-preview img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #2a1212;
}

.card h2 a {
    color: white;
}

.card h2 a:hover {
    color: var(--link);
}

.small-placeholder {
    height: 90px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
    margin: 1rem 0 1.25rem;
}

.stat-card {
    background: #0c0c0c;
    border: 1px solid #2d1111;
    border-radius: 14px;
    padding: 0.9rem;
}

.stat-card .label {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.action-button {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid #4a1717;
    background: linear-gradient(180deg, #180808 0%, #110606 100%);
    color: #f3d0d0;
    font-weight: 700;
    text-align: center;
}

.action-button:hover {
    background: linear-gradient(180deg, #220b0b 0%, #170707 100%);
    color: white;
}

.home-hero {
    min-height: 340px;
    border: 1px solid #2a1212;
    border-radius: 24px;
    padding: 2rem;
    background:
        radial-gradient(circle at 80% 20%, rgba(153, 27, 27, 0.25), transparent 28%),
        linear-gradient(180deg, rgba(16,16,16,0.98), rgba(5,5,5,0.98));
    box-shadow: 0 25px 70px rgba(0,0,0,0.45);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.eyebrow {
    color: #f0b4b4;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.home-hero h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.9;
    margin: 0 0 1rem;
}

.random-orb {
    width: 170px;
    height: 170px;
    border-radius: 999px;
    border: 1px solid #7f1d1d;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 35% 30%, #b91c1c, #300909 55%, #090909);
    color: white;
    font-weight: 900;
    box-shadow:
        0 0 30px rgba(185, 28, 28, 0.25),
        0 20px 50px rgba(0,0,0,0.5);
}

.random-orb:hover {
    transform: translateY(-2px) scale(1.03);
    text-decoration: none;
}

.home-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.home-tile {
    min-height: 140px;
    border: 1px solid #2a1212;
    border-radius: 20px;
    padding: 1.2rem;
    background: linear-gradient(180deg, rgba(16,16,16,0.98), rgba(8,8,8,0.98));
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.home-tile span {
    color: var(--muted);
    font-weight: 700;
}

.home-tile strong {
    font-size: 2.4rem;
    color: white;
}

.home-tile:hover {
    border-color: #7f1d1d;
    background: linear-gradient(180deg, rgba(24,8,8,0.98), rgba(10,10,10,0.98));
}

.category-list {
    display: grid;
    gap: 0.75rem;
}

.category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 1px solid #2a1212;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    background: linear-gradient(180deg, rgba(16,16,16,0.98), rgba(8,8,8,0.98));
}

.category-row span {
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
}

.category-row strong {
    color: var(--muted);
}

.category-row:hover {
    border-color: #7f1d1d;
    background: linear-gradient(180deg, rgba(24,8,8,0.98), rgba(10,10,10,0.98));
}

.category-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.category-card {
    min-height: 130px;
    border: 1px solid #2a1212;
    border-radius: 20px;
    padding: 1.2rem;
    background:
        radial-gradient(circle at top right, rgba(127, 29, 29, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(16,16,16,0.98), rgba(8,8,8,0.98));
    display: flex;
    align-items: flex-end;
    color: white;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.category-card:hover {
    border-color: #7f1d1d;
    transform: translateY(-2px);
    text-decoration: none;
    background:
        radial-gradient(circle at top right, rgba(185, 28, 28, 0.25), transparent 35%),
        linear-gradient(180deg, rgba(24,8,8,0.98), rgba(10,10,10,0.98));
}

.category-card span {
    color: white;
}