* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    background: #fff;
    color: #202124;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.95em;
}

.logo {
    width: 95%;
    height: auto;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-logo {
    width: 100%;
}

main {
    padding: 24px;
    max-width: 520px;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-top: 0;
}

#landing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 32px;
    pointer-events: auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    width: 100%;
    position: relative;
    z-index: 50;
}

h1 {
    font-size: 2.2em;
    margin: 0 0 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #FF6B9D, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Buttons */
#consumerBtn, #supplierBtn, #consumerReturnHomeBtn, #supplierReturnHomeBtn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 11px 28px;
    font-size: 0.95em;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px;
    border-radius: 4px;
    transition: background 0.2s ease;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

#consumerBtn:hover, #supplierBtn:hover, #consumerReturnHomeBtn:hover, #supplierReturnHomeBtn:hover {
    background: #000;
}

button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 9px 20px;
    font-size: 0.9em;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 6px auto;
    border-radius: 4px;
    transition: background 0.2s ease;
}

button:hover {
    background: #000;
}

/* Weight Key */
.weight-key {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 10px;
    margin: 12px 0;
    font-size: 0.8em;
    text-align: center;
    border-radius: 4px;
    color: #374151;
}

.weight-key p {
    margin: 0 0 6px 0;
    font-weight: 600;
    color: #202124;
}

.key-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.key-row span {
    color: #374151;
    font-size: 0.75em;
}

/* Instructions */
.instructions-btn {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #000;
    padding: 8px 16px;
    font-size: 0.85em;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 auto 8px;
    display: block;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.instructions-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.instructions {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 14px;
    margin: 12px 0;
    font-size: 0.85em;
    text-align: left;
    line-height: 1.6;
    border-radius: 4px;
    color: #374151;
}

.instructions p {
    margin: 0 0 10px 0;
    color: #374151;
}

.instructions ol {
    margin: 0;
    padding-left: 18px;
    color: #374151;
}

.instructions li {
    margin-bottom: 6px;
    color: #374151;
}

/* Tables */
table {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 14px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    background: #fff;
    font-weight: 500;
    color: #202124;
}

th {
    font-weight: 700;
    font-size: 0.95em;
    color: #fff;
}

#costTable th {
    background: #FF6B9D;
}

#supplierTable th {
    background: #4ECDC4;
    color: #000;
}

tr:last-child td {
    border-bottom: none;
}

/* Form Inputs */
input {
    width: 100%;
    max-width: 110px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.85em;
    background: #fff;
    text-align: center;
    transition: border 0.2s ease;
    font-weight: 500;
    color: #202124;
}

input:focus {
    outline: none;
    border-color: #000;
}

input::placeholder {
    color: #9ca3af;
}

/* Dropdowns */
select {
    width: 100%;
    max-width: 180px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.9em;
    background: #fff;
    text-align: center;
    transition: border 0.2s ease;
    font-weight: 500;
    color: #202124;
    cursor: pointer;
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: 0.3px;
}

select:focus {
    outline: none;
    border-color: #000;
}

/* Supplier Inputs */
.supplier-inputs {
    margin-bottom: 14px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f9fafb;
    padding: 14px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.supplier-inputs label {
    margin: 4px;
    font-weight: 600;
    font-size: 0.9em;
    color: #202124;
}

.supplier-inputs input {
    width: 90px;
    padding: 8px;
    margin: 0 3px;
}

.supplier-inputs em {
    font-style: normal;
    font-size: 0.8em;
    font-weight: 500;
    color: #666;
}

.markupInput {
    width: 80px;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85em;
    transition: border 0.2s ease;
    font-weight: 500;
    background: #fff;
    color: #202124;
}

.markupInput:focus {
    border-color: #000;
}

.markupInput:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

/* Cell Styling */
.costCell, .resaleCell {
    font-weight: 700;
    font-size: 1em;
    color: #202124;
}

/* Image Section */
.image-section {
    margin-top: 14px;
    margin-bottom: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #f9fafb;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.image-section label {
    display: inline;
    margin-right: 6px;
    font-weight: 600;
    font-size: 0.85em;
    color: #202124;
    cursor: pointer;
}

.image-section input[type="checkbox"] {
    width: auto;
    max-width: none;
    margin-right: 4px;
    padding: 0;
    cursor: pointer;
    accent-color: #000;
}

.image-section button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 8px 14px;
    font-size: 0.8em;
    cursor: pointer;
    font-weight: 600;
    margin: 0 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.image-section button:hover {
    background: #000;
}

.image-section button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Clear Link */
.clear-link {
    display: block;
    margin: 12px auto 10px;
    padding: 6px 0;
    font-size: 0.9em;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.clear-link:hover {
    color: #000;
}

/* Footer */
.curated {
    font-size: 0.8em;
    margin-top: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.disclaimer {
    font-size: 0.75em;
    margin-top: 8px;
    color: #9ca3af;
    font-weight: 500;
}

.footer-links {
    margin-top: 12px;
    font-size: 0.75em;
    text-align: center;
}

.paypal-link, .contact-link {
    color: #1a1a1a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    font-weight: 600;
}

.paypal-link:hover, .contact-link:hover {
    color: #000;
}

.divider {
    margin: 0 10px;
    color: #d1d5db;
}

.paypal-icon {
    width: 10px;
    height: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    body {
        padding: 12px;
        background: #fff;
    }

    main {
        padding: 16px;
    }

    .logo {
        width: 75%;
        margin-bottom: 14px;
    }

    h1 {
        font-size: 1.6em;
        margin: 0 0 18px;
    }

    table {
        margin: 0 auto 12px;
    }

    th, td {
        padding: 9px;
        font-size: 0.85em;
    }

    input {
        max-width: 90px;
        padding: 7px;
    }

    button {
        padding: 8px 14px;
        font-size: 0.85em;
        margin: 4px auto;
    }

    #consumerBtn, #supplierBtn, #consumerReturnHomeBtn, #supplierReturnHomeBtn {
        padding: 10px 18px;
        font-size: 0.85em;
        margin: 8px;
    }

    .supplier-inputs {
        padding: 10px;
    }

    .instructions {
        padding: 12px;
    }

    .weight-key {
        padding: 10px;
        margin: 10px 0;
        font-size: 0.8em;
    }

    .key-row {
        gap: 12px;
        margin-bottom: 4px;
    }

    .image-section {
        padding: 10px;
        gap: 6px;
    }

    .image-section button {
        padding: 7px 10px;
        font-size: 0.75em;
    }

    .clear-link {
        margin: 10px auto 8px;
        font-size: 0.85em;
    }
}
