* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    min-height: 100vh;
    line-height: 1.5;
}

/* Landing Page */
.landing-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-container {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
}

.landing-container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.landing-container p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.landing-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.landing-link {
    display: block;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
}

.landing-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.admin-link {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
}

.admin-link:hover {
    color: #fff;
}

/* Bio Page */
.bio-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.bio-container {
    width: 100%;
    max-width: 680px;
    text-align: center;
}

.bio-logo {
    display: block;
    width: 130px;
    height: 130px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12);
    background-color: #ffffff;
}

.bio-instagram {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.bio-instagram:hover {
    opacity: 1;
    text-decoration: underline;
}

.bio-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bio-description {
    opacity: 0.85;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.bio-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.bio-button-wrap {
    width: 100%;
}

.bio-button-wrap.has-photo {
    margin-top: 2.5rem;
}

.bio-button-wrap.has-photo:first-child {
    margin-top: 1.5rem;
}

.bio-button,
.bio-group-toggle,
.bio-subbutton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-family: inherit;
    box-sizing: border-box;
    position: relative;
}

.bio-button-wrap.has-photo .bio-button,
.bio-button-wrap.has-photo .bio-subbutton,
.bio-button-wrap.has-photo .bio-group-toggle {
    flex-direction: column;
    padding-top: 2.75rem;
    padding-bottom: 1rem;
    gap: 0.35rem;
}

.btn-photo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 3px solid color-mix(in srgb, var(--button-bg, #ffffff) 75%, #000000 25%);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--button-bg, #ffffff) 90%, #ffffff 10%),
                0 3px 12px rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

.bio-group {
    width: 100%;
}

.group-arrow {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.2s;
}

.bio-group.is-open .group-arrow {
    transform: rotate(180deg);
}

.bio-subbuttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.bio-subbuttons .bio-button-wrap.has-photo {
    margin-top: 2.5rem;
}

.btn-icon {
    font-size: 1.2rem;
}

.no-buttons {
    opacity: 0.7;
    padding: 2rem;
}

.bio-footer {
    margin-top: 2rem;
    opacity: 0.5;
    font-size: 0.8rem;
}

.bio-footer a {
    color: inherit;
    text-decoration: none;
}

.bio-footer a:hover {
    opacity: 1;
}

/* Error Page */
.error-page {
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-container {
    text-align: center;
}

.error-container h1 {
    font-size: 5rem;
    font-weight: 800;
}

.back-link {
    color: #667eea;
    text-decoration: none;
    margin-top: 1rem;
    display: inline-block;
}

/* Responsive */
@media (max-width: 480px) {
    .bio-name {
        font-size: 1.25rem;
    }
    .bio-logo {
        width: 110px;
        height: 110px;
        border-width: 3px;
    }
    .bio-button,
    .bio-group-toggle,
    .bio-subbutton {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    .bio-button-wrap.has-photo .bio-button,
    .bio-button-wrap.has-photo .bio-subbutton,
    .bio-button-wrap.has-photo .bio-group-toggle {
        padding-top: 2.5rem;
        padding-bottom: 0.875rem;
    }

    .btn-photo {
        width: 64px;
        height: 64px;
    }
}
