:root {
    --cc-accent: #B5CC5B;
    --cc-accent-glow: rgba(181, 204, 91, 0.35);
    --cc-text-default: #9a9a9a;
    --cc-border: #222222;
}

@keyframes cc-in {
    from {
        opacity: 0;
        transform: translateX(calc(var(--cc-dir, 1) * 36px)) scale(0.98);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes cc-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0px);
    }

    to {
        opacity: 0;
        transform: translateX(calc(var(--cc-dir, 1) * -36px)) scale(0.98);
        filter: blur(4px);
    }
}

.contact-sec {
    pointer-events: auto !important;
    user-select: none;
    margin-top: 6px !important;
    position: relative;
    z-index: 20;
}

.contact-cards-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.cc-links-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cc-icons-row {
    display: flex;
    align-items: center;
    gap: 18px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.cc-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cc-text-default);
    text-decoration: none;
    font-family: 'Droid Sans Mono', monospace;
    font-size: 10pt;
    line-height: 1.2;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 2px 0;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    z-index: 10;
}

.cc-icon-link::before {
    content: "› ";
    color: #555;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.cc-icon-link:hover,
.cc-icon-link.active {
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px #B5CC5B;
    background: transparent;
}

.cc-icon-link:hover::before,
.cc-icon-link.active::before {
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px #B5CC5B;
}

.cc-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.25s ease;
}

.cc-link-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.cc-icon-link:hover .cc-link-icon,
.cc-icon-link.active .cc-link-icon {
    filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #B5CC5B);
}

.cc-link-text {
    font-size: 10pt;
}

.cc-popover {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #000000;
    border: 1px solid var(--cc-border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95);
    contain: paint;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px) scale(0.98);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    z-index: 100;
}

.cc-popover.cc-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.cc-popover.cc-morphing {
    transition: left 0.35s cubic-bezier(0.32, 0.72, 0, 1),
        width 0.35s cubic-bezier(0.32, 0.72, 0, 1),
        height 0.35s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.2s ease-out,
        transform 0.2s ease-out;
}

.cc-slot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #000000;
}

.cc-slot.cc-anim-in {
    animation: cc-in 0.32s cubic-bezier(0.32, 0.72, 0, 1) backwards;
}

.cc-slot.cc-anim-out {
    animation: cc-out 0.28s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.cc-bridge {
    position: absolute;
    bottom: 100%;
    left: -40px;
    right: -40px;
    height: 16px;
    z-index: 5;
    pointer-events: auto;
}

.cc-card-content {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    font-family: 'Droid Sans Mono', monospace;
    background: #000000;
}

.cc-github-card {
    width: min(23rem, calc(100vw - 2.5rem));
    padding: 14px;
    gap: 12px;
    background: #000000;
}

.cc-gh-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cc-gh-avatar {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    object-fit: cover;
    background: #111;
    border: 1px solid #222;
    flex-shrink: 0;
}

.cc-gh-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cc-gh-username {
    font-size: 11pt;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cc-gh-emoji {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    display: inline-block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-gh-emoji:hover {
    transform: scale(1.25) rotate(8deg);
}

.cc-gh-count {
    font-size: 9pt;
    color: #777;
    margin-top: 2px;
}

.cc-graph-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #000000;
}

.cc-graph-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, 1fr);
    gap: 2px;
    width: 100%;
}

.cc-graph-cell {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 1px;
    transition: transform 0.1s ease, filter 0.1s ease;
}

.cc-graph-cell:hover {
    transform: scale(1.3);
    z-index: 5;
    filter: brightness(1.3);
}

.cc-lvl-0 {
    background-color: rgba(255, 255, 255, 0.07);
}

.cc-lvl-1 {
    background-color: rgba(46, 160, 67, 0.35);
}

.cc-lvl-2 {
    background-color: rgba(57, 211, 83, 0.55);
}

.cc-lvl-3 {
    background-color: rgba(57, 211, 83, 0.80);
}

.cc-lvl-4 {
    background-color: #39d353;
    box-shadow: 0 0 3px #39d353;
}

.cc-graph-tooltip {
    position: absolute;
    pointer-events: none;
    z-index: 30;
    background: #000;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 4px 7px;
    font-size: 8pt;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
    transform: translate(-50%, calc(-100% - 6px));
    opacity: 0;
    transition: opacity 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cc-graph-tooltip.visible {
    opacity: 1;
}

.cc-tt-row {
    color: #eee;
    font-size: 8pt;
}

.cc-tt-repo {
    font-size: 7.5pt;
    letter-spacing: 0.3px;
}

.cc-tt-repo.cc-tt-private {
    color: #888;
}

.cc-tt-repo.cc-tt-public {
    color: var(--cc-accent);
}

.cc-link-card {
    width: 290px;
    max-width: calc(100vw - 2.5rem);
    display: flex;
    flex-direction: column;
    background: #000000;
}

.cc-card-banner {
    height: 60px;
    width: 100%;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 3px 3px 0 0;
}

.cc-banner-discord {
    background-color: #000000;
    background-image: url('../icons/Disassembler.webp');
    background-size: cover;
    background-position: center;
}

.cc-card-body {
    padding: 10px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    background: #000000;
}

.cc-card-avatar-wrap {
    margin-top: -32px;
    margin-bottom: 4px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.cc-card-avatar-box {
    position: relative;
    display: inline-block;
}

.cc-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    background: #000000;
}

.cc-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cc-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #000000;
    background-color: #80848e;
}

.cc-status-dot.cc-status-online {
    background-color: #23a55a;
}

.cc-status-dot.cc-status-idle {
    background-color: #f0b232;
}

.cc-status-dot.cc-status-dnd {
    background-color: #f23f43;
}

.cc-status-dot.cc-status-offline {
    background-color: #80848e;
}

.cc-discord-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 3px 5px;
    margin-bottom: 2px;
}

.cc-badge-icon {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

.cc-discord-connections {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
}

.cc-connection-header {
    font-size: 6.8pt;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cc-connection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 5px 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cc-connection-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(181, 204, 91, 0.35);
}

.cc-connection-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.cc-connection-icon {
    color: #888;
    flex-shrink: 0;
    display: block;
}

.cc-connection-domain {
    font-size: 8.5pt;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.cc-connection-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 6.8pt;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--cc-accent);
    background: rgba(181, 204, 91, 0.1);
    border: 1px solid rgba(181, 204, 91, 0.28);
    border-radius: 3px;
    padding: 2px 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cc-verified-shield {
    display: block;
    flex-shrink: 0;
    fill: var(--cc-accent);
}

.cc-verified-text {
    line-height: 1;
}

.cc-card-sub {
    font-size: 9pt;
    color: #888;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.cc-status-text {
    font-size: 8pt;
}

.cc-status-text.cc-status-online {
    color: #23a55a;
}

.cc-status-text.cc-status-idle {
    color: #f0b232;
}

.cc-status-text.cc-status-dnd {
    color: #f23f43;
}

.cc-status-text.cc-status-offline {
    color: #777;
}

.cc-discord-activity {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    font-size: 8pt;
    color: #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-activity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cc-accent);
    flex-shrink: 0;
}

.cc-activity-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-card-desc {
    font-size: 9pt;
    color: #888;
    margin-top: 3px;
    line-height: 1.4;
}