* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --accent: #a855f7;
    --accent-light: #c084fc;
    --accent-dark: #241633;
    --accent-rgb: 168, 85, 247;
    --accent-pattern-rgb: 84, 43, 124;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dark) #121212;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    background-image: 
        linear-gradient(to right, rgba(var(--accent-pattern-rgb), 0.25) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(var(--accent-pattern-rgb), 0.25) 1px, transparent 1px);
    background-size: 32px 32px;
    color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.floating-share-btn {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1e1e1e;
    border: 1px solid #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.floating-share-btn .svg-icon {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    transition: fill 0.25s ease, transform 0.25s ease;
}

.floating-share-btn:hover {
    background-color: #262626;
    border-color: #a855f7;
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.floating-share-btn:hover .svg-icon {
    fill: #c084fc;
}

.floating-share-btn:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.4);
}

.floating-theme-btn {
    position: fixed;
    top: 62px;
    right: 16px;
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1e1e1e;
    border: 1px solid #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.floating-theme-btn .svg-icon {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    transition: fill 0.25s ease, transform 0.25s ease;
}

.floating-theme-btn:hover {
    background-color: #262626;
    border-color: var(--accent);
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.3);
}

.floating-theme-btn:hover .svg-icon {
    fill: var(--accent-light);
}

.floating-theme-btn:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.4);
}

.theme-picker-panel {
    position: fixed;
    top: 108px;
    right: 16px;
    z-index: 101;
    width: 220px;
    padding: 14px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background-color: #1e1e1e;
    color: #f5f5f5;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.theme-picker-panel[hidden] {
    display: none;
}

.theme-picker-panel label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
}

.theme-picker-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-color-input {
    width: 42px;
    height: 32px;
    padding: 2px;
    border: 1px solid #555555;
    border-radius: 6px;
    background: #262626;
    cursor: pointer;
}

.theme-reset-btn {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid #444444;
    border-radius: 6px;
    background: #262626;
    color: #f5f5f5;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.theme-reset-btn:hover,
.theme-reset-btn:focus-visible {
    border-color: var(--accent);
    color: var(--accent-light);
}

.share-tooltip {
    position: absolute;
    top: 48px;
    right: 0;
    background-color: var(--accent-dark);
    color: var(--accent-light);
    border: 1px solid var(--accent);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.share-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.top-banner {
    width: 100%;
    background-color: var(--accent-dark);
    border-bottom: 3px solid var(--accent);
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.top-banner h1 {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 4px;
}

.top-banner p {
    color: #dddddd;
    font-size: 14px;
    line-height: 1.4;
}

.cve-code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 13px;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent-light);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: inline-block;
}

.cve-code:hover {
    background: rgba(var(--accent-rgb), 0.25);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.3);
    transform: translateY(-1px);
}

.main-container {
    width: 100%;
    max-width: 480px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.2);
    margin-bottom: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35);
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.profile-bio {
    font-size: 14px;
    color: #999999;
    text-align: center;
    margin-bottom: 24px;
    font-weight: 400;
}

.links-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-heading {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #777777;
    margin-top: 16px;
    margin-bottom: 4px;
    padding-left: 4px;
    font-weight: 700;
}

.section-heading:first-of-type {
    margin-top: 0;
}

.security-section {
    margin-top: 16px;
}

.security-section > .section-heading {
    cursor: pointer;
    margin: 0 0 4px;
}

.security-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-button {
    display: grid;
    grid-template-columns: 24px 1fr 24px;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background-color: #1e1e1e;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #333333;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: contain;
    grid-column: 1;
    background-color: transparent;
    transition: transform 0.25s ease;
}

.svg-icon {
    width: 22px;
    height: 22px;
    grid-column: 1;
    fill: #ffffff;
    transition: transform 0.25s ease, fill 0.25s ease;
}

.link-text {
    grid-column: 2;
    text-align: center;
    transition: color 0.25s ease;
}

.link-button:hover {
    background-color: #262626;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.22), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.link-button:hover .link-text {
    color: var(--accent-light);
}

.link-button:hover .svg-icon {
    fill: var(--accent-light);
    transform: scale(1.1);
}

.link-button:hover .link-icon {
    transform: scale(1.1);
}

.link-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(var(--accent-rgb), 0.15);
}

.link-button:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.4), 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

footer {
    margin-top: auto;
    padding: 24px 20px;
    font-size: 12px;
    color: #555555;
    text-align: center;
}

.footer-status {
    font-size: 12px;
    color: #aaaaaa;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.status-dot-green {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
}

.status-dot-yellow {
    width: 6px;
    height: 6px;
    background-color: #f59e0b;
    border-radius: 50%;
    box-shadow: 0 0 6px #f59e0b;
}

.status-dot-red {
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 6px #ef4444;
}

.status-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 1; box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7); }
    70% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); }
    100% { transform: scale(0.95); opacity: 1; box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 4px;
    border: 1px solid var(--accent);
}