/* cleaned from mint.css */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111827;
    color: #e5e7eb;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

section {
    pointer-events: none;
    padding-left: 6rem;
    border-bottom: 1px solid #1f2937;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mint-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f2937;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #374151;
}

.mint-heading h1 {
    margin: 0;
    font-size: 2rem;
    color: #f9fafb;
}

.mint-heading #account {
    padding-right: 5rem;
    font-size: 1rem;
    color: #9ca3af;
}

.dashboard-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    margin-left: 1rem;
    padding: 0 1rem;
    padding-left: 0rem;
    flex: 1 0 auto;
}

.dashboard-container > .stats,
.dashboard-container > .userControls {
    flex: 1 1 45%;
    padding: 1rem;
}

.stats,
.userControls {
    margin: 0;
}

.stats {
    background: #1f2937;
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    grid-area: stats;
}

.stats h2 {
    grid-column: 1 / -1;
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: #f9fafb;
    border-bottom: 1px solid #374151;
    padding-bottom: 0.5rem;
}

.stats p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.stats span {
    font-weight: 700;
    color: #f9fafb;
}

.userControls {
    background: #1f2937;
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 0;
    grid-area: actions;
}

.userControls h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: #f9fafb;
    border-bottom: 1px solid #374151;
    padding-bottom: 0.5rem;
}

.userControls .control-group {
    display: flex;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-direction: column;
}

.userControls label {
    margin: 0;
    color: #d1d5db;
    font-weight: 500;
}

.userControls input {
    background: #374151;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: #e5e7eb;
    width: 70%;
}

.userControls input::placeholder {
    color: #9ca3af;
}

.userControls button {
    background: #2563eb;
    color: #f9fafb;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.userControls button:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

.input-with-max {
    position: relative;
    width: 100%;
}

.input-with-max input {
    padding-right: 3rem;
    width: 65%;
}

.max-btn {
    background: #2563eb;
    color: #f9fafb;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    position: static;
    transform: none;
    margin-left: 0.5rem;
}

.max-btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

.input-with-max .max-btn {
    position: absolute;
    top: 0px;
    background: #2563eb;
    color: #f9fafb;
    border: none;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.input-with-max .max-btn:hover {
    background: #1e40af;
}

.userControls .control-group > button {
    align-self: flex-start;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.stats-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

.stat-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f9fafb;
}

.stat-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.stat-logo-box {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.stat-portfolio-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.stat-portfolio-item .primary-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f9fafb;
    line-height: 1.2;
}

.stat-portfolio-item .sub-value {
    line-height: 1.2;
}

.stat-portfolio-item .stat-main-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f9fafb;
}

.sub-value {
    display: block;
    margin-left: calc(1.5rem + 0.5rem);
    font-size: 0.8rem;
    font-weight: 400;
    color: #6b7280;
}

.fee-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.fee-info span {
    font-weight: 600;
    color: #f9fafb;
}

html, body {
    height: 100%;
    margin: 0;
}

.page-layout {
    display: grid;
    flex-direction: row;
    grid-template-columns: 300px 1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "ad fees fees"
    "ad stats actions";
    gap: 1rem;
    padding-right: 1rem;
}

.skinvault-banner {
    background-color: #111;
    padding: 1rem;
    padding-right: 0rem;
    grid-area: ad;
    max-height: 400px;
    overflow: hidden;
}

.skinvault-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.main-content {
    flex-grow: 1;
}

.main-content,
.dashboard-container {
    display: contents;
}

.fees {
    grid-area: fees;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 1rem;
    padding-left: 0;
    padding: 0;
}

.skinvault-banner,
.fees,
.stats,
.userControls {
    padding: 1rem;
    box-sizing: border-box;
}

.fees h2 {
    margin: 0;
    white-space: nowrap;
}

.fees .fee-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    height: auto;
    margin: 0;
    padding: 0;
    column-gap: 1.5rem;
}

.fees .fee-info > div {
    white-space: nowrap;
    font-weight: 500;
    align-self: center;
}


@media (max-width: 500px) {

    .metamaskModal > div {
        padding: 16px;
        font-size: 1rem;
    }

}

@media (max-width: 900px) {

    .mint-heading {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #1f2937;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid #374151;
    }

    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-container > section {
        width: 100%;
    }

    .mint-heading,
    .stats,
    .userControls {
        padding: 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .userControls .control-group {
        grid-template-columns: 1fr auto auto;
    }

    .mint-heading {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 1rem 0;
    }

    .mint-heading h1 {
        margin: 0 0 0.5rem;
    }

    .mint-heading .account {
        align-self: flex-start;
        width: 100%;
        padding-left: 1rem;
        text-align: left;
        font-family: monospace;
    }

}

@media (max-width: 1200px) {

    .page-layout {
        padding-left: 1rem;
        grid-template-columns: 1fr;
        grid-template-rows: auto   
      auto   
      auto   
      auto;
        grid-template-areas: "fees"
      "stats"
      "actions"
      "ad";
    }

    .fees {
        grid-area: fees;
        padding-top: 1rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .stats {
        grid-area: stats;
    }

    .userControls {
        grid-area: actions;
    }

    .skinvault-banner {
        grid-area: ad;
    }

    .fees .fee-info {
        justify-content: center;
        display: flex;
        gap: 1.5rem;
    }

    .fees h2 {
        margin: 0;
    }

    .stats > h2 {
        text-align: center;
        width: 100%;
        margin: 1.5rem 0;
    }

    .stats .stats-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .stats .stats-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
        box-sizing: border-box;
    }

}