:root {
    --bg-body: #30444a;
    --bg-header: #172125;
    --titleheader: #1e1f28d0;
    --title: #acc167;
    --textheader: #092c36;
    --text: #cacdce;
    --accent: #8b9d8f;
    --border: #2a373b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    background-color: var(--bg-body);
    font-family: 'Courier New', Courier, monospace;
    color: var(--text);
}

body {
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 50px auto;
    background-color: #14280e;
    color: #333;
}

.header {
    background-color: #ebe8e8;
    color: #1d1c1cc2;
    font-family: 'Courier New', Courier, monospace;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    text-align: left;
    padding: 40px 0 40px 20px;
}

.header h2 {
    color: var(--titleheader);
    padding: 0 20px;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: .02em;
}

.header h3 {
    color: var(--titleheader);
    padding: 0 20px 10px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: .02em;
}

.header p {
    padding: 0 20px;
    color: var(--textheader);
    font-weight: 400;
    font-size: 1.2rem;
}
.container {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: left;
}

.container h1 {
    color: var(--title);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: .05em;
    margin-bottom: 1rem;
}

.container h2 {
    color: var(--title);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.container p {
    color: var(--text);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}
button {
    margin: 10px 0;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

input,
select {
    padding: 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

#result {
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    min-height: 50px;
}

.error {
    color: #d32f2f;
}

.success {
    color: #2e7d32;
}

.info {
    color: #1976d2;
}

#walletInfo {
    color: var(--text);
    font-weight: bold;
    margin-left: 10px;
}

.hidden {
    display: none;
}

/* Public edition status panel: on-chain stats, visible to everyone.
   overflow-wrap: anywhere protects the layout if a collection name
   ever comes back longer than what compact displays (e.g. ~33 chars
   on Basescan) are willing to show. */
#statsPanel {
    margin-top: 15px;
    border: 1px solid #b8cfe0;
    background: #eef5fb;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
}

#statsPanel h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #2c3e50;
}

#statsPanel div {
    margin: 3px 0;
    overflow-wrap: anywhere;
}

#statsCollection {
    font-weight: bold;
    color: #1a5276;
}

#statsPanel a {
    font-weight: bold;
}

/* Holder-only certificate panel: shown ONLY when the connected wallet
   owns a token of the selected edition */
#certPanel {
    margin-top: 15px;
    border: 1px solid #c9d8c5;
    background: #f4faf2;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
}

#certPanel h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #2c3e50;
}

#certPanel div {
    margin: 3px 0;
}

#certPanel span {
    font-weight: bold;
}

/* Message for a connected wallet that does NOT hold this edition */
#holderMsg {
    margin-top: 15px;
    padding: 10px;
    border: 1px dashed #d0b8b8;
    background: #fbf2f2;
    border-radius: 6px;
    font-size: 14px;
    color: #7a4a4a;
}