@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --bg: #181818;
    --surface: #202020;
    --surface-2: #242424;
    --surface-3: #292929;

    --border: #343434;
    --border-light: #3d3d3d;

    --text: #f1f1ed;
    --text-soft: #c7c7c1;
    --muted: #92928c;

    --accent: #d7ff45;
    --accent-hover: #e2ff73;
    --accent-dark: #a8c72d;

    --danger: #ff6b6b;

    --radius: 14px;
    --radius-lg: 20px;

    --shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(255, 255, 255, 0.035),
            transparent 38%
        ),
        var(--bg);

    color: var(--text);
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
}

body::selection {
    background: var(--accent);
    color: #111;
}

a {
    color: var(--text-soft);
    text-decoration: none;
    transition:
        color 0.18s ease,
        opacity 0.18s ease;
}

a:hover {
    color: var(--text);
}

header {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

header h1 {
    margin: 0;

    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    padding: 8px 13px;
    border-radius: 9px;

    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
}

main {
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0 100px;
}

main > h1 {
    margin: 0 0 10px;

    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

main > h2 {
    margin-top: 50px;

    font-family: "Manrope", sans-serif;
    letter-spacing: -0.025em;
}

main > p {
    color: var(--muted);
}

section {
    margin-top: 28px;
    padding: 28px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

section h2 {
    margin: 0 0 22px;

    font-family: "Manrope", sans-serif;
    font-size: 21px;
    letter-spacing: -0.025em;
}

section h3 {
    margin: 0 0 8px;

    font-family: "Manrope", sans-serif;
    font-size: 18px;
}

section p {
    color: var(--muted);
}

form {
    margin: 0;
}

form > div {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;

    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;

    color: var(--text);
    background: var(--surface-2);

    border: 1px solid var(--border-light);
    border-radius: 10px;

    outline: none;

    font: inherit;
    font-size: 14px;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

input::placeholder,
textarea::placeholder {
    color: #70706b;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #4a4a4a;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    background: #272727;

    box-shadow:
        0 0 0 3px rgba(215, 255, 69, 0.08);
}

button {
    border: 0;
    border-radius: 10px;

    padding: 11px 17px;

    background: var(--text);
    color: #171717;

    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
    background: #ffffff;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

form button[type="submit"] {
    background: var(--accent);
    color: #171717;
}

form button[type="submit"]:hover {
    background: var(--accent-hover);
}

article {
    position: relative;

    margin-top: 14px;
    padding: 22px;

    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 15px;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

article:hover {
    transform: translateY(-2px);
    border-color: var(--border-light);
    background: var(--surface-3);
}

article p {
    margin: 7px 0;
    font-size: 14px;
}

article a {
    font-size: 14px;
}

article form {
    display: inline-block;
    margin-right: 7px;
}

article form button {
    padding: 8px 12px;
    font-size: 13px;
}

strong {
    color: var(--text);
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;

    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
}

th,
td {
    padding: 15px 16px;
    text-align: left;

    border-bottom: 1px solid var(--border);

    font-size: 14px;
}

th {
    color: var(--muted);
    background: #222222;

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

td {
    color: var(--text-soft);
}

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

.warning-banner {
    margin-top: 10px;
    padding: 11px 13px;

    color: #c9c9c3;
    background: rgba(255, 255, 255, 0.035);

    border: 1px solid var(--border);
    border-radius: 9px;

    font-size: 12px;
    line-height: 1.5;
}

.error,
.error-message {
    padding: 12px 14px;

    color: #ffb0b0;
    background: rgba(255, 107, 107, 0.07);

    border: 1px solid rgba(255, 107, 107, 0.22);
    border-radius: 10px;
}

main > p a {
    color: var(--accent);
}

main > p a:hover {
    color: var(--accent-hover);
}

select {
    appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, #999 50%),
        linear-gradient(135deg, #999 50%, transparent 50%);

    background-position:
        calc(100% - 17px) 50%,
        calc(100% - 12px) 50%;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;
}

hr {
    height: 1px;
    margin: 35px 0;

    border: 0;
    background: var(--border);
}

@media (max-width: 760px) {
    header {
        width: min(100% - 28px, 1000px);

        align-items: flex-start;
        gap: 18px;
        flex-direction: column;
    }

    nav {
        width: 100%;
        flex-wrap: wrap;
    }

    main {
        width: min(100% - 28px, 1000px);
        padding-top: 42px;
    }

    section {
        padding: 20px;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    th,
    td {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    nav {
        gap: 3px;
    }

    nav a {
        padding: 7px 9px;
        font-size: 13px;
    }

    article {
        padding: 17px;
    }

    button {
        width: 100%;
    }

    article form {
        display: block;
        margin: 8px 0;
    }
}

.delete-account-btn {
    background-color: #ff0000 !important;
    color: #ffffff !important;
    border: 1px solid #ff0000 !important;
    padding: 10px 18px;
}

.delete-account-btn:hover {
    background-color: #cc0000 !important;
    border-color: #cc0000 !important;
}