@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("./images/erdiTypeArkaPlan.png") center center / cover no-repeat;
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: -1;
}

.card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: transparent;
    border-radius: 18px;
    padding: 24px 22px 20px;
    border: none;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.55);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background:
        conic-gradient(from var(--border-angle),
            transparent 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.35) 68%,
            #ffffff 80%,
            rgba(255, 255, 255, 0.35) 92%,
            transparent 100%),
        rgba(255, 255, 255, 0.12);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-spin 4s linear infinite;
    pointer-events: none;
}

@keyframes border-spin {
    to {
        --border-angle: 360deg;
    }
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 2px solid #3b82f6;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header {
    margin-bottom: 22px;
}

.name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tagline {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
}

.offline {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

.offline .live-dot {
    background: #64748b;
}

.live {
    background: rgba(248, 113, 113, 0.15);
    color: #fecaca;
}

.live .live-dot {
    background: #f87171;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.link-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    background: transparent;
    border-radius: 10px;
    padding: 12px 15px;
    border: none;
    color: #e5e7eb;
    font-size: 14px;
    transition: 0.12s ease;
}

.link-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background:
        conic-gradient(from var(--border-angle),
            transparent 0%,
            transparent 55%,
            rgba(255, 255, 255, 0.3) 72%,
            #ffffff 82%,
            rgba(255, 255, 255, 0.3) 92%,
            transparent 100%),
        rgba(255, 255, 255, 0.10);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-spin 4s linear infinite;
    pointer-events: none;
}

.link-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.5);
}

iconify-icon,
.btn-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    vertical-align: middle;
}

.btn-icon {
    object-fit: contain;
    flex-shrink: 0;
}

.footer {
    text-align: center;
    font-size: 11px;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    padding-top: 10px;
    background: linear-gradient(100deg,
            #6b7280 0%,
            #6b7280 40%,
            #ffffff 50%,
            #6b7280 60%,
            #6b7280 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: text-shine 3.5s linear infinite;
}

@keyframes text-shine {
    from {
        background-position: 200% center;
    }

    to {
        background-position: -200% center;
    }
}

.footer a {
    -webkit-text-fill-color: #3b82f6;
    color: #3b82f6;
}