:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --text-color: #1f1f23;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font-sans);
    background: radial-gradient(circle at top left, #ffffff 0, #f5f5f7 45%, #e8ecff 100%);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.page {
    width: 100%;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.15),
        0 0 0 1px rgba(148, 163, 184, 0.18);
    padding: 2.5rem 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 999px;
    padding: 6px;
    background: linear-gradient(135deg, #0057ff, #9248ec);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #0f172a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-inner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 1.9rem;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #4b5563;
    max-width: 30rem;
    margin-bottom: 0.5rem;
}

.contact {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
    margin-top: 0.5rem;
}

a {
    font-weight: 500;
    text-decoration: none;
    background: linear-gradient(135deg, #0057ff, #9248ec);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

/* Admin */

.admin-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.15),
        0 0 0 1px rgba(148, 163, 184, 0.18);
    padding: 2.5rem 2rem;
    text-align: center;
}

.admin-card h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    outline: none;
    background: #fff;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #0057ff;
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: #fff;
    background: linear-gradient(135deg, #0057ff, #9248ec);
    cursor: pointer;
    margin-top: 0.5rem;
    transition: opacity 0.2s;
}

.btn:hover { opacity: 0.9; }

.btn-secondary {
    background: #6b7280;
    text-decoration: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
}

.error {
    color: #dc2626;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.saved-msg {
    color: #16a34a;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.logout-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    background: linear-gradient(135deg, #0057ff, #9248ec);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

textarea {
    width: 100%;
    min-height: 180px;
    padding: 0.75rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: var(--font-sans);
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

textarea:focus {
    border-color: #0057ff;
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1);
}

.recent-table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.recent-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.recent-table td {
    padding: 0.4rem 0.5rem;
    color: #4b5563;
    border-bottom: 1px solid #f0f0f3;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

@media (max-width: 600px) {
    body {
        padding: 1.25rem;
    }

    .page {
        padding: 2rem 1.35rem 1.9rem;
    }

    .avatar {
        width: 110px;
        height: 110px;
        margin-bottom: 1.5rem;
    }

    h1 {
        font-size: 1.4rem;
    }
}