body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f172a 100%);
    color: #ffffff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #FF6200;
}

.btn {
    background: #FF6200;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    background: #FF8C00;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.back-btn {
    margin-bottom: 20px;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: #FFDAB9;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.balance {
    font-size: 1rem;
    color: #FFDAB9;
    margin: 0 15px;
    display: inline-block;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #FFDAB9;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #33334d;
    border-radius: 8px;
    background: rgba(28, 28, 46, 0.5);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.proposal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.proposal {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.proposal:nth-child(2) {
    animation-delay: 0.1s;
}

.proposal:nth-child(3) {
    animation-delay: 0.2s;
}

.proposal:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(255, 140, 0, 0.3);
}

#highlightedProposals .proposal {
    border: 2px solid #FF6200;
    box-shadow: 0 0 10px rgba(255, 98, 0, 0.5);
    animation: fadeIn 0.5s ease-out forwards;
}

.proposal img, #proposalImage {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: filter 0.3s ease;
}

.proposal:hover img {
    filter: brightness(1.1);
}

.proposal h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    color: #FFDAB9;
}

#proposalTitle {
    margin: 0 0 15px;
    font-size: 2rem;
    color: #FFDAB9;
}

#proposalDescription {
    color: #d1d1e0;
    margin-bottom: 15px;
}

.proposal p.description {
    color: #d1d1e0;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.proposal p:not(.description), #proposalCreator, #proposalVoteCount {
    color: #d1d1e0;
    margin-bottom: 15px;
}

.vote-btn {
    background: #FF6200;
    transition: background 0.3s ease;
}

.vote-btn:hover {
    background: #FF8C00;
}

.voter-list {
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px;
}

.voter-list li {
    padding: 8px;
    border-bottom: 1px solid #33334d;
    color: #d1d1e0;
    font-size: 0.9rem;
}

.voter-list li:last-child {
    border-bottom: none;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeInPopup 0.3s ease-out;
}

.popup.active {
    display: flex;
}

.popup-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.popup-content h3 {
    margin: 0 0 20px;
    font-size: 1.2rem;
    color: #FFDAB9;
}

.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.popup-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.popup-btn.cancel {
    background: #33334d;
}

.popup-btn.cancel:hover {
    box-shadow: 0 4px 15px rgba(51, 51, 77, 0.4);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 20px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(15px);
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        width: 200px;
        z-index: 1000;
    }

    nav.active {
        display: flex;
    }

    .btn {
        margin: 5px 0;
        text-align: center;
    }

    .balance-section {
        padding: 10px;
    }

    .balance {
        display: block;
        margin: 5px 0;
    }

    .proposal-grid {
        grid-template-columns: 1fr;
    }

    .proposal:nth-child(n+2) {
        animation-delay: 0.1s;
    }

    #proposalImage {
        max-width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInPopup {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}