:root {
    --bg: #0b0b0e;
    --card: #14141a;
    --red: #ff3b3b;
    --emerald: #2cff9a;
    --text: #eaeaea;
}

* {
    box-sizing: border-box;
    font-family: Inter, system-ui, sans-serif;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #1a1a22, #0b0b0e);
    color: var(--text);
}

header {
    text-align: center;
    padding: 3rem 1rem;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}

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

.user-card {
    background: linear-gradient(180deg, #16161d, #101015);
    border-radius: 20px;
    padding: 1.6rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

.counter {
    font-size: .8rem;
    opacity: .6;
    margin-bottom: .5rem;
}

.item-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: .8rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #121218, #0e0e13);
    margin-bottom: .6rem;
    animation: slideUp .35s ease;
}

.rank {
    font-weight: 800;
    opacity: .7;
}

.item-main strong {
    display: block;
}

.item-main small {
    font-size: .7rem;
    opacity: .55;
}

.price {
    font-weight: 700;
    color: var(--emerald);
    display: block;
    text-align: right;
}

.item-actions button {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
}

.rank-1 {
    border: 1px solid gold;
    box-shadow: 0 0 25px rgba(255,215,0,.25);
}

.rank-2 {
    border: 1px solid silver;
}

.rank-3 {
    border: 1px solid #cd7f32;
}

.add-item {
    width: 100%;
    padding: .6rem;
    border-radius: 14px;
    border: 1px solid var(--emerald);
    background: transparent;
    color: var(--emerald);
    cursor: pointer;
    transition: .25s;
}

.add-item:hover {
    background: var(--emerald);
    color: black;
}

.sum {
    margin-top: 1rem;
    font-weight: 700;
}

.total {
    margin-top: 3rem;
    text-align: center;
}

#calc-all {
    padding: 1rem 2rem;
    border-radius: 16px;
    background: var(--red);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

#total-sum {
    margin-top: 1rem;
    font-size: 2.2rem;
    color: var(--emerald);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden { display: none; }

.modal-content {
    background: var(--card);
    padding: 2rem;
    border-radius: 18px;
    width: 320px;
    animation: pop .25s ease;
}

.modal-content input {
    width: 100%;
    padding: .6rem;
    margin-bottom: .8rem;
    border-radius: 10px;
    border: none;
}

.modal-actions {
    display: flex;
    gap: .5rem;
}

.modal-actions button {
    flex: 1;
    padding: .6rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

#save-item { background: var(--emerald); }
#cancel { background: #333; color: white; }

@keyframes pop {
    from { transform: scale(.9); opacity: 0 }
    to { transform: scale(1); opacity: 1 }
}

@keyframes slideUp {
    from { transform: translateY(15px); opacity: 0 }
    to { transform: translateY(0); opacity: 1 }
}
/* bestehendes CSS bleibt, NEU unten */

.top-highlight {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.highlight-card {
    padding: 1.4rem 2rem;
    border-radius: 20px;
    background: linear-gradient(145deg, #16161f, #0f0f14);
    text-align: center;
    min-width: 240px;
    animation: float 4s ease-in-out infinite;
}

.highlight-card span {
    font-size: .8rem;
    opacity: .6;
}

.highlight-card strong {
    display: block;
    font-size: 1.4rem;
    color: var(--emerald);
}

.highlight-card.red strong {
    color: var(--red);
}

.highlight-card small {
    display: block;
    opacity: .6;
    margin-top: .3rem;
}

.glow {
    box-shadow: 0 0 35px rgba(44,255,154,.25);
}

.badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: gold;
    color: black;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    animation: pulse 1.6s infinite;
}

.user-card {
    position: relative;
}

.hidden { display: none; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 rgba(255,215,0,.6); }
    70% { box-shadow: 0 0 25px rgba(255,215,0,.6); }
    100% { box-shadow: 0 0 0 rgba(255,215,0,0); }
}

@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
