/* MakeMNEE - Modern Design System */

:root {
    --bg: #fbfbfd;
    --panel: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --border: #e5e7eb;
    --shadow: 0 14px 40px rgba(2, 6, 23, .08);
    --brand: #8a6a3c;      /* warm brass */
    --brand2: #b58a4a;     /* highlight */
    --accent: #0b1f2a;     /* deep ink */
    --ok: #16a34a;
    --danger: #dc2626;
    --max: 1120px;
    --r: 16px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 500px at 70% 120px, rgba(181,138,74,.10), transparent 60%),
        radial-gradient(1000px 500px at 15% 220px, rgba(15,23,42,.06), transparent 55%),
        var(--bg);
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 22px;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 22px;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 251, 253, .82);
    backdrop-filter: saturate(1.5) blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, .7);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    font-weight: 800;
    letter-spacing: .2px;
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.85;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(229, 231, 235, .9);
    background: linear-gradient(180deg, #fff, #f6f4ef);
    box-shadow: 0 8px 18px rgba(2, 6, 23, .08);
    overflow: hidden;
}

.logo svg, .logo img {
    width: 34px;
    height: 34px;
}

.brand-name {
    font-family: "DM Serif Display", serif;
    font-size: 28px;
    line-height: 1;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    justify-content: center;
    color: #334155;
    font-weight: 500;
    font-size: 14.5px;
}

.nav-link {
    padding: 8px 10px;
    border-radius: 10px;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    transition: background 0.2s ease;
}

.nav-link:hover {
    background: rgba(148, 163, 184, .18);
}

.nav-link.active {
    background: rgba(138, 106, 60, .12);
    color: var(--brand);
}

.nav-link-external {
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.nav-link-external:hover {
    background: rgba(148, 163, 184, .18);
}

.wallet-section {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.wallet-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wallet-info span {
    background: rgba(138, 106, 60, .12);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(138, 106, 60, .22);
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(138, 106, 60, .35);
    background: linear-gradient(180deg, rgba(138, 106, 60, .92), rgba(138, 106, 60, .86));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(138, 106, 60, .22);
    cursor: pointer;
    transition: transform .08s ease, box-shadow .2s ease;
    white-space: nowrap;
    font-family: inherit;
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(138, 106, 60, .24);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    /* default is already primary */
}

.btn-secondary, .btn.secondary {
    background: linear-gradient(180deg, #ffffff, #fbfbfd);
    color: var(--accent);
    border: 1px solid rgba(15, 23, 42, .16);
    box-shadow: 0 10px 18px rgba(2, 6, 23, .08);
    font-weight: 700;
}

.btn-tertiary, .btn.tertiary {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(2, 6, 23, .12);
    box-shadow: none;
}

.btn-success {
    background: linear-gradient(180deg, rgba(22, 163, 74, .92), rgba(22, 163, 74, .86));
    border-color: rgba(22, 163, 74, .35);
    box-shadow: 0 10px 22px rgba(22, 163, 74, .22);
}

.btn-success:hover {
    box-shadow: 0 14px 28px rgba(22, 163, 74, .24);
}

.btn-danger {
    background: linear-gradient(180deg, rgba(220, 38, 38, .92), rgba(220, 38, 38, .86));
    border-color: rgba(220, 38, 38, .35);
    box-shadow: 0 10px 22px rgba(220, 38, 38, .22);
}

.btn-danger:hover {
    box-shadow: 0 14px 28px rgba(220, 38, 38, .24);
}

/* Views */
.view {
    display: none;
}

.view.active {
    display: block;
}

/* Hero */
.hero {
    padding: 64px 0 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
}

h1 {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    letter-spacing: -.6px;
    font-size: 54px;
    line-height: 1.05;
    margin: 0 0 14px;
    color: #0b1f2a;
}

.lead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 16px;
    max-width: 56ch;
}

.lead strong {
    color: #0b1f2a;
}

.cta-row {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.hero-illustration {
    border-radius: 22px;
    border: 1px solid rgba(229, 231, 235, .9);
    background: linear-gradient(180deg, #fff, #f7f7fb);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    min-height: 330px;
}

.hero-illustration:before {
    content: "";
    position: absolute;
    inset: -80px -60px auto auto;
    width: 520px;
    height: 420px;
    background: radial-gradient(circle at 30% 30%, rgba(181, 138, 74, .22), transparent 60%);
    transform: rotate(12deg);
    pointer-events: none;
}

.hero-illustration:after {
    content: "";
    position: absolute;
    inset: auto -120px -160px auto;
    width: 520px;
    height: 420px;
    background: radial-gradient(circle at 30% 30%, rgba(15, 23, 42, .12), transparent 60%);
    transform: rotate(-10deg);
    pointer-events: none;
}

.illus-inner {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.mock {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(229, 231, 235, .9);
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(2, 6, 23, .12);
    padding: 18px 18px 14px;
}

.mock-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(181, 138, 74, .12);
    color: #6b4e23;
    border: 1px solid rgba(181, 138, 74, .22);
    white-space: nowrap;
}

.pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(181, 138, 74, .9);
    box-shadow: 0 0 0 3px rgba(181, 138, 74, .18);
}

.mock-title {
    font-weight: 800;
    color: #0b1f2a;
}

.checklist {
    display: grid;
    gap: 10px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: #1f2937;
    font-size: 13.5px;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.check {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: rgba(22, 163, 74, .12);
    border: 1px solid rgba(22, 163, 74, .22);
    margin-top: 1px;
    flex: 0 0 auto;
}

.coins {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    justify-content: flex-end;
    opacity: .95;
}

.coin {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffe6b8, #c99649 62%, #8a6a3c);
    border: 1px solid rgba(138, 106, 60, .55);
    box-shadow: 0 10px 18px rgba(138, 106, 60, .2);
    position: relative;
}

.coin:before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    opacity: .9;
}

.wave {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    height: 120px;
    opacity: .22;
    pointer-events: none;
    background:
        radial-gradient(90px 40px at 6% 40%, rgba(181, 138, 74, .65), transparent 62%),
        radial-gradient(120px 50px at 20% 60%, rgba(15, 23, 42, .55), transparent 64%),
        radial-gradient(120px 50px at 36% 50%, rgba(181, 138, 74, .65), transparent 64%),
        radial-gradient(150px 60px at 55% 58%, rgba(15, 23, 42, .55), transparent 66%),
        radial-gradient(160px 60px at 74% 46%, rgba(181, 138, 74, .65), transparent 66%),
        radial-gradient(160px 60px at 92% 58%, rgba(15, 23, 42, .55), transparent 66%);
    filter: blur(2px);
}

/* Sections */
.section {
    padding: 34px 0;
}

.main-content {
    min-height: 60vh;
}

.section-title {
    font-family: "DM Serif Display", serif;
    font-size: 30px;
    letter-spacing: -.2px;
    margin: 0 0 10px;
    color: #0b1f2a;
}

.section-lead {
    margin: 0 0 22px;
    color: var(--muted);
    max-width: 78ch;
    line-height: 1.7;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-header h2 {
    font-family: "DM Serif Display", serif;
    font-size: 30px;
    letter-spacing: -.2px;
    margin: 0;
    color: #0b1f2a;
    font-weight: 400;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.card {
    background: var(--panel);
    border: 1px solid rgba(229, 231, 235, .9);
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: 0 12px 24px rgba(2, 6, 23, .06);
    min-height: 140px;
}

.num {
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    color: rgba(138, 106, 60, .35);
    margin-bottom: 10px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14.5px;
}

.why {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 18px;
    align-items: start;
}

.bullets {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.bullets li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #1f2937;
    line-height: 1.55;
}

.tick {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: rgba(22, 163, 74, .12);
    border: 1px solid rgba(22, 163, 74, .22);
    flex: 0 0 auto;
    margin-top: 2px;
}

.cta {
    text-align: center;
    padding: 46px 0 66px;
}

.cta h2 {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-size: 34px;
    margin: 0 0 10px;
    color: #0b1f2a;
    letter-spacing: -.2px;
}

.cta p {
    margin: 0 auto 18px;
    color: var(--muted);
    max-width: 70ch;
    line-height: 1.7;
}

/* Bounties List */
.bounties-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 16px;
    margin-top: 1rem;
}

.bounty-card {
    background: var(--panel);
    border: 1px solid rgba(229, 231, 235, .9);
    border-radius: 18px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 12px 24px rgba(2, 6, 23, .06);
}

.bounty-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(2, 6, 23, .12);
}

.bounty-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--accent);
    font-weight: 600;
}

.bounty-card .bounty-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.bounty-card .amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand);
}

.bounty-card .description {
    color: var(--muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    font-size: 14.5px;
}

.bounty-card .bounty-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-open {
    background: rgba(22, 163, 74, .12);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, .22);
}

.badge-completed {
    background: rgba(59, 130, 246, .12);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, .22);
}

.badge-cancelled {
    background: rgba(220, 38, 38, .12);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, .22);
}

/* Form */
.form {
    background: var(--panel);
    padding: 24px;
    border: 1px solid rgba(229, 231, 235, .9);
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(2, 6, 23, .06);
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--bg);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(138, 106, 60, .12);
    background: var(--panel);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--panel);
    padding: 32px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, .2);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 28px;
    cursor: pointer;
    color: var(--muted);
    transition: color 0.2s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-close:hover {
    color: var(--text);
    background: rgba(15, 23, 42, .06);
}

#bountyDetail h2 {
    margin-bottom: 12px;
    color: var(--accent);
    font-family: "DM Serif Display", serif;
    font-size: 28px;
    font-weight: 400;
}

#bountyDetail h3 {
    margin: 24px 0 12px;
    color: var(--accent);
    font-size: 20px;
    font-weight: 600;
}

#bountyDetail .bounty-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

#bountyDetail .amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand);
}

#bountyDetail p {
    color: var(--muted);
    line-height: 1.7;
}

.bounty-info {
    background: var(--bg);
    padding: 16px;
    margin: 16px 0;
    border-left: 3px solid var(--brand);
    border-radius: 8px;
}

.bounty-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.bounty-info p:last-child {
    margin-bottom: 0;
}

.bounty-info code {
    background: rgba(138, 106, 60, .12);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

/* Submissions */
.submissions-list {
    margin-top: 1rem;
}

.submission-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 14px;
}

.submission-card:last-child {
    margin-bottom: 0;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.submission-wallet {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--muted);
}

.submission-result {
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
    line-height: 1.7;
}

.submission-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.submission-time {
    font-size: 13px;
    color: var(--muted);
}

/* Bounty Actions */
.bounty-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
    display: flex;
    gap: 12px;
}

/* Status Messages */
.status-message {
    position: fixed;
    top: 80px;
    right: 24px;
    padding: 16px 20px;
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(2, 6, 23, .18);
    z-index: 2000;
    animation: slideIn 0.3s ease;
    border: 1px solid;
    max-width: 400px;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.status-message.hidden {
    display: none;
}

.status-message.success {
    background: rgba(22, 163, 74, .12);
    color: #15803d;
    border-color: rgba(22, 163, 74, .22);
}

.status-message.error {
    background: rgba(220, 38, 38, .12);
    color: #991b1b;
    border-color: rgba(220, 38, 38, .22);
}

.status-message.info {
    background: rgba(59, 130, 246, .12);
    color: #1e40af;
    border-color: rgba(59, 130, 246, .22);
}

/* Loading & Info States */
.loading, .info {
    text-align: center;
    padding: 48px 24px;
    color: var(--muted);
    font-size: 15px;
}

.hidden {
    display: none !important;
}

/* Footer */
footer {
    border-top: 1px solid rgba(229, 231, 235, .8);
    padding: 18px 0 34px;
    color: #64748b;
    font-size: 13px;
    margin-top: 40px;
}

.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.foot a {
    color: #475569;
    transition: color 0.2s ease;
}

.foot a:hover {
    color: var(--text);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    h1 {
        font-size: 44px;
    }

    .header-nav {
        display: none;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .why {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        gap: 10px;
    }

    .brand {
        min-width: auto;
    }

    .bounties-list {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 16px;
        padding: 24px;
    }

    .wallet-section {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 36px;
    }

    .brand-name {
        font-size: 22px;
    }

    .hero {
        padding: 40px 0 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}
