/*──────────────────────────────────────────────────────────────────────────*/
/* No overflow or horizontal scroll */
html,
body {
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
}

/* main and section.card fill and center */
main,
section.card {
    max-width: 100vw;
    margin: 0 auto;
}

/* all images and similar elements never overflow */
img,
video,
canvas,
.nav-grid {
    max-width: 100vw;
    height: auto;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* VARIABLES */
:root {
    --accent: #03a9f4;
    --accent-hover: #039be5;
    --bg: #fafafa;
    --surface: #fff;
    --fg: #212121;
    --radius: 8px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121212;
        --surface: #1e1e1e;
        --fg: #eee;
    }
}

/*──────────────────────────────────────────────────────────────────────────*/
/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* BASE TYPOGRAPHY & LAYOUT */
body {
    font-family: Roboto, sans-serif;
    background: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    /* desktop base */
}

h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: .75rem;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* HEADER & MAIN */
header {
    background: var(--accent);
    color: #fff;
    padding: 1rem 1.25rem;
    font-size: 1.25rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

main {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* SECTION CARD (desktop defaults) */
section.card .nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

section.card {
    width: 90vw;
    max-width: 420px;
    margin: 1rem auto;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px #0002;
}

/* override h2 inside cards */
section.card h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* LOGO CONTAINER */
.logo-container {
    margin-bottom: 2rem;
}

.logo-container img {
    width: 100px;
    height: 100px;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* FORM INPUTS (desktop defaults) */
section.card input {
    width: 100%;
    padding: .75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    box-sizing: border-box;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* MESSAGES */
.status {
    background: #fffbcc;
    border: 1px solid #f4e46e;
    padding: .75rem;
    border-radius: var(--radius);
    animation: fade 5s forwards;
}

.error {
    color: #c00;
    margin-bottom: 1rem;
}

.success {
    color: #080;
    margin-bottom: 1rem;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* BIG BUTTON (desktop defaults) */
.big-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    color: var(--fg);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.big-btn:hover {
    background: var(--accent);
    color: #fff;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* LANGUAGE TOGGLE BUTTON */
.lang-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: .25rem .5rem;
    font-size: .8rem;
    background: none;
    border: 1px solid #007bff;
    border-radius: 4px;
    color: #007bff;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.lang-toggle:active,
.lang-toggle:focus {
    background: #007bff;
    color: #fff;
    outline: none;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* “Already have an account?” LINK */
.alt-action {
    margin-top: 1rem;
    font-size: .9rem;
}

.alt-action a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* FILE-UPLOAD WIDGET */
.file-box {
    position: relative;
    display: inline-block;
}

.file-box input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-btn {
    display: inline-block;
    padding: .7rem 1.3rem;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-weight: 500;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* FORMS & SELECTS */
button,
select {
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
}

button {
    padding: .7rem 1.3rem;
    background: var(--accent);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}

button:hover {
    background: var(--accent-hover);
}

select {
    padding: .6rem;
    width: 100%;
    border: 1px solid #ccc;
    background: var(--surface);
    color: var(--fg);
}

/*──────────────────────────────────────────────────────────────────────────*/
/* MANAGE-LIST */
.manage-list-container {
    max-height: 320px;
    overflow-y: auto;
}

.manage-item {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.manage-item:last-child {
    border: none;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* ICON BUTTON (delete, share) */
.icon-btn {
    background: #fbe9e7;
    border: 1px solid #ffab91;
    color: #d84315;
    font-size: .85rem;
    padding: .4rem .7rem;
    border-radius: var(--radius);
    cursor: pointer;
}

.icon-btn:hover {
    background: #ffccbc;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* Venmo icon sizing */
.btn-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-right: .5rem;
}

.big-btn span[data-key="venmo"] {
    font-weight: normal;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* SHARE SELECT */
.share-select {
    width: auto;
    padding: .4rem .5rem;
    font-size: .9rem;
    margin-right: .3rem;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--fg);
}

/*──────────────────────────────────────────────────────────────────────────*/
/* “Create account” spacing */
#create-account-btn {
    margin-top: 1rem;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* RADIO GROUPS */
.radios {
    display: flex;
    gap: 1.5rem;
    margin-top: .5rem;
}

.radios label {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .95rem;
}

.radios input {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
}

.radios label[disabled] {
    opacity: .45;
}

/*──────────────────────────────────────────────────────────────────────────*/
/* ANIMATIONS */
@keyframes fade {
    0% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        pointer-events: none;
    }
}

/*──────────────────────────────────────────────────────────────────────────*/
/* MOBILE (everything in vw, card is 90vw up to 95vw) */
@media (max-width: 600px) {
    body {
        font-size: 4vw;
    }

    section.card {
        width: 90vw;
        max-width: 95vw;
        margin: 5vw auto;
        padding: 5vw;
    }

    .logo-container img {
        width: 20vw;
        height: auto;
        max-width: 80px;
    }

    section.card input {
        padding: 4vw;
        margin-bottom: 4vw;
        font-size: 4vw;
    }

    .big-btn {
        padding: 4vw;
        font-size: 4vw;
    }
}

/* DESKTOP EXTENSION (if you want different at ≥601px, defaults already apply) */
/* @media (min-width: 601px) { */
/*   section.card { */
/*     width: 90vw; */
/*     max-width: 420px; */
/*     padding: 1.5rem; */
/*   } */
/* } */