/* ── Link In Bio Frontend ────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&display=swap');

.lib-wrap {
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: 'Vazirmatn', 'IRANYekan', Tahoma, sans-serif;
}

.lib-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    z-index: 0;
}

.lib-main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 32px 16px;
    gap: 24px;
    box-sizing: border-box;
}

/* ── Logo ── */
.lib-logo {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}
.lib-logo img {
    max-height: 72px;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

/* ── Grid ── */
.lib-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1;
    align-content: center;
}

/* ── Box ── */
.lib-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    text-decoration: none;
    color: #fff;
    transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.lib-box:hover,
.lib-box:focus {
    background: #2640a9;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(38,64,169,0.45);
    border-color: rgba(38,64,169,0.6);
    text-decoration: none;
}
.lib-box:active {
    transform: scale(0.96);
}

/* Full width box */
.lib-box--full {
    flex-direction: row;
    width: 100%;
    padding: 18px 24px;
    border-radius: 18px;
    color: #fff;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    font-weight: 600;
    font-size: 1rem;
    gap: 10px;
    flex-shrink: 0;
}
.lib-box--full:hover {
    background: unset;
    color: #fff;
    opacity: 0.9;
    filter: brightness(1.08);
}

/* ── Icon ── */
.lib-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lib-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}
.lib-icon--img img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}
.lib-box--full .lib-icon svg {
    width: 22px;
    height: 22px;
}
.lib-box--full .lib-icon--img img {
    width: 22px;
    height: 22px;
}

/* ── Text ── */
.lib-box-title {
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}
.lib-box--full .lib-box-title {
    font-size: 1rem;
    font-weight: 600;
}
.lib-box-desc {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
    text-align: center;
    line-height: 1.3;
    margin-top: 2px;
}

/* ── Footer ── */
.lib-footer {
    text-align: center;
    flex-shrink: 0;
}
.lib-footer p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    margin: 0;
}

/* ── Responsive ── */
@media (min-width: 480px) {
    .lib-main { max-width: 440px; padding: 40px 20px; }
    .lib-grid { gap: 16px; grid-template-columns: 1fr 1fr 1fr; }
    .lib-box-title { font-size: 0.88rem; }
    .lib-icon svg { width: 32px; height: 32px; }
}
@media (min-width: 768px) {
    .lib-main { max-width: 520px; }
    .lib-logo img { max-height: 90px; }
}
