* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    min-height: 100vh;
    padding: 20px;
}
.container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.nav {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
a {
    color: #0f766e;
    text-decoration: none;
    margin-right: 20px;
}
a:hover {
    text-decoration: underline;
}
h1 {
    color: #333;
    margin-bottom: 8px;
}
h2 {
    color: #333;
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.15em;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}
/* ----- Login section ----- */
#loginSection {
    text-align: center;
    padding: 40px 0;
}
.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    text-decoration: none;
    color: #3c4043;
}
.btn-google svg {
    flex-shrink: 0;
}
/* ----- Profile section ----- */
#profileSection {
    display: none;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdfa;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 8px;
}
.user-email {
    font-weight: 600;
    color: #1a1a1a;
}
.user-name {
    color: #666;
    font-size: 0.9em;
}
.badge-superuser {
    background: #0f766e;
    color: white;
    font-size: 0.72em;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: middle;
}
/* ----- Token create form ----- */
.token-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.token-form input[type="text"] {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    color: #333;
    outline: none;
}
.token-form input[type="text"]:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15,118,110,0.15);
}
.btn {
    padding: 9px 18px;
    border: none;
    border-radius: 6px;
    font-size: 0.88em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-primary {
    background: #0f766e;
    color: white;
}
.btn-primary:hover {
    background: #0d6660;
}
.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
}
.btn-danger:hover {
    background: #fecaca;
}
.btn-logout {
    background: #f3f4f6;
    color: #374151;
    margin-top: 32px;
}
.btn-logout:hover {
    background: #e5e7eb;
}
/* ----- Token reveal box ----- */
.token-reveal {
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.token-reveal p {
    color: #0e7490;
    font-size: 0.88em;
    margin-bottom: 8px;
}
.token-reveal code {
    display: block;
    background: white;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 10px 14px;
    font-family: monospace;
    font-size: 0.82em;
    word-break: break-all;
    color: #0c4a6e;
    user-select: all;
    margin-top: 6px;
}
/* ----- Token list ----- */
.token-list {
    margin-top: 8px;
}
.token-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}
.token-item-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.9em;
}
.token-item-date {
    color: #9ca3af;
    font-size: 0.78em;
    margin-top: 2px;
}
.token-item-id {
    font-family: monospace;
    font-size: 0.72em;
    color: #6b7280;
}
.token-empty {
    color: #9ca3af;
    font-size: 0.9em;
    padding: 12px 0;
}
/* ----- Delete account ----- */
.danger-zone {
    margin-top: 40px;
    padding: 20px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff5f5;
}
.danger-zone h2 {
    color: #b91c1c;
    border-bottom-color: #fecaca;
    margin-top: 0;
}
.danger-zone p {
    font-size: 0.88em;
}
/* ----- Loading / error states ----- */
.msg-loading {
    color: #9ca3af;
    font-size: 0.9em;
    padding: 8px 0;
}
.msg-error {
    color: #b91c1c;
    font-size: 0.88em;
    margin-top: 8px;
}
