
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #090e0b;
    color: white;
    font-family: Arial, sans-serif;
}

.sidebar {
    position: fixed;
    width: 250px;
    height: 100vh;
    background: #101812;
    border-right: 1px solid #24372a;
    padding: 30px 20px;
}

.logo {
    font-size: 25px;
    font-weight: 900;
    color: #4bea7c;
    margin-bottom: 55px;
}

.menu-title {
    font-size: 11px;
    color: #65746a;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

nav a {
    padding: 15px;
    color: #aab7ad;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
}

nav a:hover, nav a.active {
    background: #1c3022;
    color: #4bea7c;
}

.sidebar-bottom {
    position: absolute;
    bottom: 30px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #8b9a8e;
    font-size: 11px;
}

.sidebar-bottom small {
    color: #526257;
}

.main-content {
    margin-left: 250px;
    padding: 35px 45px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 55px;
}

.topbar h2 {
    font-size: 25px;
    margin-bottom: 8px;
}

.topbar p {
    color: #839187;
}

.status {
    color: #4bea7c;
    font-size: 12px;
    background: #14271a;
    padding: 12px 16px;
    border-radius: 8px;
}

.welcome {
    padding: 55px;
    border: 1px solid #294433;
    border-radius: 15px;
    background: radial-gradient(ellipse at top right, #1b4529, #101a13 65%);
}

.tag {
    color: #4bea7c;
    font-size: 11px;
    letter-spacing: 3px;
}

.welcome h1 {
    font-size: 55px;
    margin: 25px 0 15px;
}

.welcome h1 span {
    color: #4bea7c;
}

.welcome p {
    color: #a2afa5;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 50px;
}

.stat-card {
    background: #121b15;
    border: 1px solid #263d2e;
    border-radius: 12px;
    padding: 25px;
}

.stat-card p {
    font-size: 11px;
    color: #829187;
    letter-spacing: 1px;
}

.stat-card h2 {
    color: #4bea7c;
    font-size: 35px;
    margin: 18px 0 8px;
}

.stat-card small {
    color: #718075;
}

.section h2 {
    margin-bottom: 22px;
}

.quick-access {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    display: block;
    text-decoration: none;
    color: white;
    background: #121b15;
    border: 1px solid #263d2e;
    border-radius: 12px;
    padding: 25px;
    transition: 0.2s;
}

.feature:hover {
    border-color: #4bea7c;
    transform: translateY(-5px);
}

.feature div {
    font-size: 30px;
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 12px;
}

.feature p {
    color: #8e9c92;
    font-size: 13px;
    margin-bottom: 25px;
}

.feature span {
    color: #4bea7c;
    font-size: 11px;
    font-weight: bold;
}

@media (max-width: 900px) {
    .sidebar {
        width: 180px;
    }

    .main-content {
        margin-left: 180px;
        padding: 20px;
    }

    .stats, .quick-access {
        grid-template-columns: 1fr;
    }

    .welcome h1 {
        font-size: 35px;
    }
}

.farm-section {
    margin-top: 45px;
}

.farm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.farm-card {
    background: #121b15;
    border: 1px solid #263d2e;
    border-radius: 12px;
    padding: 25px;
    transition: 0.2s;
}

.farm-card:hover {
    border-color: #4bea7c;
    transform: translateY(-5px);
}

.farm-category {
    color: #4bea7c;
    font-size: 10px;
    letter-spacing: 2px;
}

.farm-card h3 {
    margin: 22px 0 12px;
}

.farm-card p {
    color: #8e9c92;
    font-size: 13px;
    margin-bottom: 25px;
}

.farm-info {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #263d2e;
    padding: 15px 0;
    font-size: 12px;
}

.farm-info span {
    color: #829187;
}

.farm-info strong {
    color: #4bea7c;
    text-align: right;
}

@media (max-width: 1100px) {
    .farm-grid {
        grid-template-columns: 1fr;
    }
}

.farm-price {
    font-size: 32px;
    font-weight: 900;
    color: #4bea7c;
    margin: 20px 0;
}

.farm-link {
    display: block;
    margin-top: 20px;
    padding: 14px;
    text-align: center;
    background: #193c25;
    border: 1px solid #315b3c;
    border-radius: 8px;
    color: #4bea7c;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: 0.2s;
}

.farm-link:hover {
    background: #265333;
    border-color: #4bea7c;
}

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 35px;
}

.calculator-panel,
.results-panel {
    background: #121b15;
    border: 1px solid #263d2e;
    border-radius: 14px;
    padding: 30px;
}

.calculator-description {
    color: #829187;
    font-size: 13px;
    margin: 12px 0 28px;
}

.calculator-panel label {
    display: block;
    color: #b8c4bb;
    font-size: 13px;
    margin: 20px 0 9px;
}

.calculator-panel input {
    width: 100%;
    padding: 15px;
    background: #090e0b;
    border: 1px solid #304737;
    border-radius: 8px;
    color: white;
    outline: none;
    font-size: 15px;
}

.calculator-panel input:focus {
    border-color: #4bea7c;
}

.calculate-button {
    width: 100%;
    padding: 17px;
    margin-top: 28px;
    background: #35c966;
    border: none;
    border-radius: 8px;
    color: #061009;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.calculate-button:hover {
    background: #4bea7c;
    transform: translateY(-2px);
}

.result-card {
    background: #0c140e;
    border: 1px solid #263d2e;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.result-card span,
.payback-card span {
    color: #829187;
    font-size: 11px;
    letter-spacing: 1px;
}

.result-card h2 {
    color: #4bea7c;
    font-size: 27px;
    margin-top: 12px;
}

.payback-card {
    background: #193c25;
    border: 1px solid #356744;
    border-radius: 10px;
    padding: 22px;
}

.payback-card h2 {
    color: #4bea7c;
    font-size: 30px;
    margin: 15px 0;
}

.payback-card p {
    color: #a4b7a8;
    font-size: 12px;
}

.error-message {
    color: #ff7777;
    font-size: 13px;
    margin-top: 15px;
}

@media (max-width: 1000px) {
    .calculator-layout {
        grid-template-columns: 1fr;
    }
}

/* MARKETPLACE */

.marketplace-panel {
    max-width: 700px;
    margin-top: 25px;
}

.marketplace-panel input,
.marketplace-panel textarea,
.marketplace-panel select {
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    background: #101a14;
    color: white;
    border: 1px solid #294b35;
    border-radius: 8px;
    font-size: 15px;
}

.marketplace-panel textarea {
    min-height: 110px;
    resize: vertical;
}

.marketplace-heading {
    margin-top: 35px;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.listing-card {
    background: #111b15;
    border: 1px solid #294b35;
    border-radius: 12px;
    padding: 22px;
}

.listing-card h3 {
    color: #65e68a;
    margin-bottom: 10px;
}

.listing-category {
    display: inline-block;
    background: #1e3928;
    color: #8bf0a8;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.listing-card p {
    color: #b8c5bb;
    margin: 15px 0;
}

.listing-card h2 {
    color: #65e68a;
}

.delete-listing {
    background: #672c2c;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 7px;
    cursor: pointer;
    margin-top: 15px;
}

/* LEADERBOARD */

.leaderboard-form {
    max-width: 600px;
    margin-top: 25px;
}

.leaderboard-form input {
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    background: #101a14;
    color: white;
    border: 1px solid #294b35;
    border-radius: 8px;
    font-size: 15px;
}

.leaderboard-section {
    margin-top: 35px;
}

.leaderboard-section h2 {
    margin-bottom: 20px;
}

.leaderboard-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #111b15;
    border: 1px solid #294b35;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
}

.leaderboard-rank {
    font-size: 22px;
    font-weight: bold;
    color: #65e68a;
    min-width: 40px;
}

.leaderboard-card h3 {
    flex: 1;
}

.leaderboard-card h2 {
    color: #65e68a;
    margin: 0;
    font-size: 18px;
}

.leaderboard-card button {
    flex-shrink: 0;
}
