:root {
    --primary-green: #1CC57A;
    --dark-green: #198754;
    --light-green: #2ECF8F;
    --bg-color: #f4f6f8;
    --text-color: #333;
    --border-color: #ddd;
    --white: #ffffff;
    --error-red: #dc3545;
    --warning-orange: #ffc107;
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 50px;
}

/* UTILS */
.hidden {
    display: none !important;
}

.mono {
    font-family: monospace;
}

/* HEADER */
.main-header {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.main-header h1 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.disclaimer-box {
    background-color: #f8f9fa;
    border-left: 5px solid var(--primary-green);
    padding: 15px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 0.9rem;
    color: #555;
}

/* MAIN CONTAINER */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* BANK SIMULATOR */
.bank-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.bank-header {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.bank-balance {
    font-size: 0.9rem;
    opacity: 0.9;
}

.bank-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #666;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.input-readonly {
    background-color: #f9f9f9;
    color: #777;
    cursor: not-allowed;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: var(--dark-green);
}

.step-explainer {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    text-align: center;
}

/* RECEIPT */
.receipt-container {
    padding: 30px;
    border-top: 1px solid var(--border-color);
    background-color: #fafafa;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.receipt-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    position: relative;
}

.receipt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-green);
    border-radius: 8px 8px 0 0;
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 10px;
}

.receipt-brand {
    font-weight: 700;
    color: var(--dark-green);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.receipt-row .label {
    color: #666;
}

.receipt-row .value {
    text-align: right;
    font-weight: 500;
}

.receipt-row .value.highlight {
    color: var(--dark-green);
    font-weight: 700;
}

.receipt-row .value small {
    display: block;
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
}

.btn-secondary {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.toast {
    text-align: center;
    margin-top: 10px;
    color: var(--dark-green);
    font-size: 0.9rem;
    background: #e8f5e9;
    padding: 8px;
    border-radius: 4px;
}

/* VERIFICATION SECTION */
.verification-container {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.verification-container h2 {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.verification-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.btn-verify {
    width: 100%;
    padding: 14px;
    background-color: #333;
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-verify:hover {
    background-color: #000;
}

/* RESULTS */
.result-container {
    margin-top: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.result-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
    font-weight: 600;
    color: #777;
}

.tab-btn.active {
    background: var(--white);
    color: var(--dark-green);
    border-top: 3px solid var(--primary-green);
}

.tab-btn.error-tab.active {
    color: var(--error-red);
    border-top-color: var(--error-red);
}

.tab-content {
    padding: 20px;
    display: none;
}

.tab-content.active {
    display: block;
}

.result-block {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.result-block:last-child {
    border-bottom: none;
}

.badge-success {
    background: #d4edda;
    color: #155724;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.result-block h4 {
    margin-bottom: 15px;
    color: #555;
    font-size: 1rem;
}

.info-grid {
    display: grid;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.info-item .value {
    font-weight: 500;
}

.value.success {
    color: var(--dark-green);
}

.value.warning {
    color: #d39e00;
}

.value.error {
    color: var(--error-red);
}

/* SUB TABS */
.sub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.sub-tab-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.sub-tab-btn.active {
    background: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
    font-weight: 600;
}

.sub-tab-btn.success.active {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.sub-tab-btn.error.active {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.subtab-content {
    display: none;
}

.subtab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

.status-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.success-box {
    background: #e8f5e9;
    color: #1b5e20;
}

.error-box {
    background: #fbe9eb;
    color: #a94442;
}

.explanation-text {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #666;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.illegit-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--error-red);
}

.btn-restart {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background: #eee;
    border: none;
    border-radius: 20px;
    color: #555;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-restart:hover {
    background: #ddd;
}

/* INFO TEXT */
.info-text-section {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.info-box {
    background: var(--white);
    padding: 20px;
    border-left: 4px solid var(--primary-green);
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-box p+p {
    margin-top: 10px !important;
}

/* VOTING */
.voting-section {
    text-align: center;
    margin-bottom: 40px;
}

.voting-section h3 {
    margin-bottom: 20px;
    color: #444;
}

.vote-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.vote-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.btn-vote {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn-vote:active {
    transform: scale(0.95);
}

.btn-vote:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-vote.yes {
    background-color: #0d6efd;
    color: white;
}

.btn-vote.no {
    background-color: #6c757d;
    color: white;
}

.vote-count {
    font-size: 0.85rem;
    color: #666;
}

/* DONATION */
.donation-section {
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 0 20px;
}

.donation-box {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.crypto-wallet {
    margin-top: 20px;
    text-align: left;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.wallet-address-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    gap: 10px;
}

.wallet-address-box code {
    word-break: break-all;
    font-size: 0.85rem;
    color: #333;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: #eee;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-small:hover {
    background: #e2e6ea;
}

/* FOOTER */
.main-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
}

.contact-link {
    color: #999;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .bank-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .wallet-address-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-small {
        width: 100%;
        margin-top: 5px;
    }
}

.disclaimer-box p {
    margin-bottom: 18px;
}

p {
    margin-bottom: 12px !important;
}

p {
    margin-top: 12px;
    margin-bottom: 12px;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

h3 {
    margin-top: 24px;
    margin-bottom: 8px;
}