body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #222;
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

a {
    color: #1a56db;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.flash-notice {
    background: #e6f4ea;
    color: #1e7e34;
}

.flash-error {
    background: #fbe7e9;
    color: #a4222b;
}

/* Forms - shared by auth pages and the wish-request form */
form:not(.inline-form) {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 420px;
}

label {
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.checkbox-label {
    flex-direction: row;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: normal;
}

input[type="email"],
input[type="password"],
input[type="tel"],
input[type="text"],
input[type="datetime-local"],
select,
textarea {
    padding: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button,
input[type="submit"] {
    margin-top: 1.25rem;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.button-danger {
    background: #a4222b;
}

.button-success {
    background: #1e7e34;
}

.inline-form {
    display: inline-block;
    max-width: none;
}

.wish-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.home-hero {
    text-align: center;
    padding: 2rem 0 1rem;
}

.home-hero p {
    color: #555;
    margin-bottom: 1rem;
}

.home-hero .celeb-cta {
    justify-content: center;
}

.home-page h2 {
    margin-top: 2rem;
}

/* Celeb directory */
.celeb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.celeb-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
}

.celeb-card img,
.celeb-show-page img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

.celeb-card h2 {
    font-size: 1rem;
    margin: 0.5rem 0 0.25rem;
}

.celeb-price {
    font-weight: 600;
}

.celeb-badge {
    display: inline-block;
    font-size: 0.75rem;
    background: #e6f4ea;
    color: #1e7e34;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.celeb-cta {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
}

.button-link {
    display: inline-block;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    background: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.celeb-social-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-filter-links a {
    margin-right: 0.75rem;
    text-decoration: none;
}

.admin-filter-active {
    font-weight: 700;
    text-decoration: underline !important;
}

td .inline-form {
    margin-right: 0.4rem;
}

td .inline-form button {
    margin-top: 0;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
}

.celeb-list-footer {
    margin-top: 2rem;
    color: #555;
}

/* Tables - wish lists */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* Admin */
.admin-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.field-help {
    font-size: 0.8rem;
    color: #777;
    margin: 0.15rem 0 0;
}

.admin-raw-response {
    background: #f7f7f7;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-break: break-word;
}
