    body {,
        font-family: "Times New Roman", serif;
        background: black url(https://media.xanje.com/themes/dark/background.png);
        color: #b8b8b8;
        padding: 20px;
        max-width: 800px;
        margin: auto;
    }
    hr {
        background: url(https://64.media.tumblr.com/3a8d46bc9b57b88635bf6c59ab115b2f/f6f0cf0e0901b6dd-ca/s400x600/37e660e49e362f3611d3dbedbc79f95d2b7f37f2.gif) center no-repeat;
        border: none;
        height: 1px;
        background-size: 100%;
        box-shadow: 2px 2px 5px rgba(255, 255, 255, 0.5);
    }
    h1 { 
        text-align: center;
        color: #b8b8b8;
    }
    h4 {
        text-align: center;
        color: #b8b8b8;
    }
    .box {
        background: #171717;
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    .topnav {
       text-align: center;
       margin-bottom: 20px;
       color: #b8b8b8;
    }

    .topnav a {
      margin: 0 10px;
      text-decoration: none;
      font-weight: bold;
      color: #b8b8b8;
    }

    .topnav a:hover {
      text-decoration: underline;
      color: #b8b8b8;
    }
    .market-grid {
        display: flex;
        gap: 1rem; /* space between the labels */
        flex-wrap: wrap; /* optional, wraps if the screen is too narrow */
    }
    .market-grid label {
        display: flex;
        flex-direction: column; /* keeps the text above the input */
    }
    label { display: block; margin-top: 10px; }
    input, select {
        background: #15212a;
        color: #c5c5c5;
        padding: 6px;
        margin-top: 3px;
        font-size: 16px;
        border: none;
        border-radius: 10px;
    }
    .extras-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-top: 10px;
    }
    button {
        width: 100%;
        padding: 12px;
        margin-top: 20px;
        font-size: 18px;
        background: #15212a;
        color: #b8b8b8;
        border: none;
        border-radius: 8px;
        cursor: pointer;
    }
    button:hover { background: #15212a; }
    pre {
        background: #15212a;
        padding: 15px;
        border-radius: 10px;
        white-space: pre-wrap;
    }
    .details-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .details-grid .full {
        grid-column: 1 / -1;
}
    .details-row-3 {
        display: grid;
       grid-template-columns: repeat(3, 1fr);
       gap: 12px;
}
#output table {
  width: 100%;
  table-layout: auto;   
  border-collapse: collapse;
}
tbody {
    text-align: right;
}
th, td {
    padding: 5px;
}
/* First column labels left-aligned and only as wide as content */
#output td:first-child, #output th:first-child {
  text-align: left;
  font-weight: bold;
  white-space: nowrap;
  width: 1%;
}
.input-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.input-group {
  display: flex;
  flex-direction: column;
}

#output{
    color: #b8b8b8;
    margin-top: 20px;
    background: black;
    width: 99%;
    border-radius: 10px;
}

/* preview */
.builder-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* LEFT SIDE (form) */
#generator-form {
    flex: 1;
    min-width: 300px;
}

.profile-header {
    flex: 1;
    background: var(--bg-accent);
    color: var(--text-accent);
    width: 91%;
    margin-left: 7px;
    border-radius: 3px;
}

.greeting-header {
    flex: 1;
    background: var(--bg-accent);
    color: var(--text-accent);
    border-radius: 3px;
}

.profile-info {
    flex: 1;
    background: var(--bg-main);
    margin-left: 7px;
    height: 30%;
    color: var(--text-color);
    border-radius: 3px;
    text-align: center;
    font-size: 14px;
}

.greeting {
    flex: 1;
    background: var(--bg-main);
    color: var(--text-color);
    margin-right: 7px;
    height: 97%;
    border-radius: 3px;
}

/* INNER PREVIEW WRAPPER */
.preview-frame {
    background: var(--body-bg);
    background-size: cover;
    background-position: center;
    margin-top: 25px;
    padding-top: 12px;
    display: flex;
    gap: 10px;
    border-radius: 5px;
    height: 270px;
}
