body {
    margin: 0;
    background: var(--bg-page);
    color: var(--text-body);
    min-height: 100vh;
    transition: background-color .15s ease, color .15s ease;
}

* {
    box-sizing: border-box;
}

/* Bare <input type="file"> renders as the browser's own "Choose File"
   button + filename text, styled entirely by the OS/browser and impossible
   to fully theme — ::file-selector-button (supported in every current
   browser) is the one part of it we CAN restyle, turned into a pill button
   matching the site's brand-gold buttons instead of the default grey box.
   Global (not scoped to .form-field) so every upload field gets it, even
   ones outside that wrapper (e.g. profile.blade.php's avatar upload). */
input[type="file"] {
    padding: 4px;
    color: var(--text-muted, #a8a29e);
    background: var(--bg-surface, #1a1a1a);
    border: 1px solid rgba(214, 183, 93, .35);
    border-radius: 999px;
    font-size: .85rem;
    font-family: inherit;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 7px 16px;
    color: var(--text-heading-accent, #fef3c7);
    background: rgba(var(--brand-primary-rgb, 234, 179, 8), .16);
    border: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .4);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}

input[type="file"]:hover::file-selector-button {
    background: rgba(var(--brand-primary-rgb, 234, 179, 8), .28);
    border-color: var(--brand-primary, #eab308);
}

input[type="file"]:focus-visible {
    outline: 2px solid var(--brand-primary, #eab308);
    outline-offset: 1px;
}

/* Visually hidden but still reachable by screen readers — for form fields
   whose placeholder/context makes a visible <label> redundant on-screen. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

p {
    margin: 0;
    color: var(--text-body, #d6d3d1);
    line-height: 1.7;
}

.language-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 12px 4px 0;
}

.language-flag {
    display: inline-flex;
    flex-shrink: 0;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    opacity: .5;
    transition: opacity .18s ease, border-color .18s ease;
}

.language-flag:hover {
    opacity: .8;
}

.language-flag.active {
    opacity: 1;
    border-color: var(--brand-primary, #eab308);
}

.language-flag img {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    color: var(--text-meta-accent, #d6b75d);
    background: var(--bg-surface, #1a1a1a);
    border: 1px solid rgba(214, 183, 93, .48);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.btn-link {
    display: inline-block;
    padding: 8px 14px;
    margin: 20px 5px 10px 5px;
    color: #1c1917;
    background: var(--brand-primary, #eab308);
    border: none;
    border-radius: 7px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.btn-link:hover {
    background: #facc15;
    transform: translateY(-1px);
}

.btn-link:focus-visible {
    outline: 3px solid var(--text-heading-accent, #fef3c7);
    outline-offset: 3px;
}

.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 16px 0;
}

.dashboard-banner {
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto 20px;
    padding: 32px;
    background: rgba(var(--bg-surface-alt-rgb, 23, 23, 23), .96);
    border: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .3);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    text-align: center;
}

.banner-title {
    margin: 8px 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -.03em;
    color: var(--text-heading-accent, #fef3c7);
}
