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

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, #1e293b, transparent 40%),
        radial-gradient(circle at top right, #0f172a, transparent 40%),
        linear-gradient(135deg, #020617, #0f172a);
    min-height: 100vh;
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 30px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 40px;
}

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

.menu a {
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    transition: all 0.25s ease;
    font-weight: 500;
}

.menu a:hover {
    background: rgba(59,130,246,0.25);
    transform: translateX(4px);
}

/* CONTENT */
.main {
    flex: 1;
    padding: 30px;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
}

/* CARDS */
.card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255,255,255,0.06);
    padding: 22px;
    border-radius: 20px;
}

.stat-label {
    opacity: 0.7;
    font-size: 14px;
}

.stat-number {
    font-size: 34px;
    font-weight: 800;
    margin-top: 10px;
}

/* FORMS */
.form-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 25px;
}

input,
textarea {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 15px;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.45);
}

.btn {
    border: none;
    padding: 15px 22px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* TABLE */
.table-wrap {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
}

th {
    text-align: left;
    padding: 18px;
    font-size: 14px;
    opacity: 0.7;
}

td {
    padding: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.short-url {
    font-size: 13px;
    opacity: 0.75;
    word-break: break-word;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.edit-btn {
    background: #2563eb;
}

.copy-btn {
    background: #16a34a;
}

.delete-btn {
    background: #dc2626;
}

/* LOGIN */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-box {
    width: 100%;
    max-width: 420px;
}

/* BIOLINK */
.bio-wrap {
    max-width: 520px;
    margin: auto;
    padding: 50px 20px;
    text-align: center;
}

.bio-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.bio-title {
    font-size: 30px;
    font-weight: 800;
}

.bio-desc {
    opacity: 0.75;
    margin: 12px 0 30px;
}

.bio-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bio-btn {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.08);
    font-weight: 700;
    transition: 0.25s ease;
}

.bio-btn:hover {
    transform: scale(1.02);
    background: rgba(59,130,246,0.18);
}

/* MOBILE */
@media (max-width: 900px) {
    .wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .menu {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .main {
        padding: 20px;
    }

    .page-title {
        font-size: 26px;
    }
}