/* Home page styles. Phone-related rules for the "Instagram for Links" and "Connect Instagram" sections; headings, cards and buttons use the shared site styles.
   The Connect Instagram phone reuses the device look from the "Instagram for Links" section and the /ai page. */

/* Story-ringed initials avatar, used on the phone in the "Instagram for Links" section */
.story-avatar {
    display: inline-block;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffa109 0%, #E1306C 55%, #df62db 100%);
}

.story-avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #0088fe;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.ig-connect .ig-phone-wrap {
    position: relative;
    width: 18rem;
    max-width: 100%;
    margin: 0 auto;
    isolation: isolate;
}

.ig-connect .ig-phone-glow {
    position: absolute;
    z-index: -1;
    inset: 6% -8%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(223, 98, 219, .28), rgba(34, 155, 255, .22) 55%, transparent 100%);
    filter: blur(24px);
}

.ig-connect .ig-phone {
    position: relative;
    height: 34rem;
    background: #fff;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid #eef1f4;
    box-shadow: 0 .5rem 2rem rgba(30, 50, 100, .18);
}

.ig-connect .ig-float {
    position: absolute;
    z-index: 3;
    top: 12%;
    right: -2.25rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .35rem .9rem .35rem .35rem;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 .6rem 1.4rem rgba(30, 50, 100, .2);
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.ig-connect .ig-float .ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: .75rem;
}

.ig-connect .ig-float.f2 {
    top: 60%;
    right: auto;
    left: -2.75rem;
}

.ig-connect .ig-float.f2 .ico {
    background: #0088fe;
}

.ig-connect .ig-float.f3 {
    top: 82%;
    right: -2.75rem;
}

.ig-connect .ig-float.f3 .ico {
    background: #E1306C;
}

@media (max-width: 991.98px) {
    .ig-connect .ig-float {
        right: 0;
    }

    .ig-connect .ig-float.f2,
    .ig-connect .ig-float.f3 {
        display: none;
    }
}

.ig-connect .ig-circle-btn {
    position: absolute;
    z-index: 2;
    top: .85rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 .15rem .6rem rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: #12141c;
}

.ig-connect .ig-circle-btn.l { left: .85rem; }
.ig-connect .ig-circle-btn.r { right: .85rem; }

.ig-connect .ig-cover {
    position: relative;
    height: 9rem;
    background:
        radial-gradient(10rem 8rem at 50% 20%, rgba(255, 255, 255, .35), transparent 70%),
        linear-gradient(160deg, #58cdff 0%, #229bff 38%, #df62db 72%, #ffa109 100%);
}

.ig-connect .ig-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 70%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
}

.ig-connect .ig-screen {
    position: relative;
    z-index: 1;
    margin-top: -2.5rem;
    padding: 0 1.1rem;
    text-align: left;
}

.ig-connect .ig-profile-row {
    display: flex;
    align-items: flex-end;
    gap: .9rem;
    margin-bottom: .6rem;
}

.ig-connect .ig-story {
    flex: none;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffa109 0%, #E1306C 55%, #df62db 100%);
}

.ig-connect .ig-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #0088fe;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.ig-connect .ig-name {
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
}

.ig-connect .ig-name i {
    color: #0095f6;
    font-size: .95rem;
    margin-left: .2rem;
}

.ig-connect .ig-cat {
    color: #0095f6;
    font-size: .8rem;
    font-weight: 500;
}

.ig-connect .ig-stats {
    flex: 1;
    display: flex;
    justify-content: space-between;
    margin: 0 0 .25rem;
    text-align: center;
}

.ig-connect .ig-stats div {
    flex: 1;
}

.ig-connect .ig-stats strong {
    display: block;
    font-size: .95rem;
    line-height: 1.2;
}

.ig-connect .ig-stats span {
    font-size: .68rem;
    color: #6c757d;
}

.ig-connect .ig-actions {
    display: flex;
    gap: .4rem;
    margin: .75rem 0;
}

.ig-connect .ig-actions span {
    flex: 1;
    text-align: center;
    font-size: .72rem;
    font-weight: 600;
    padding: .4rem 0;
    border-radius: 999px;
    background: #efefef;
    color: #212529;
}

.ig-connect .ig-actions span.primary {
    background: #0088fe;
    color: #fff;
}

.ig-connect .ig-switcher {
    display: flex;
    justify-content: center;
    gap: .25rem;
    width: fit-content;
    margin: 0 auto .75rem;
    padding: 4px;
    border-radius: 999px;
    background: #f1f3f5;
    font-size: .75rem;
    color: #6c757d;
}

.ig-connect .ig-switcher span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 1.75rem;
    border-radius: 999px;
}

.ig-connect .ig-switcher span.active {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    color: #12141c;
}

.ig-connect .ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.ig-connect .ig-grid span {
    aspect-ratio: 1;
    border-radius: .5rem;
    background: linear-gradient(135deg, #ffa109 0%, #E1306C 55%, #df62db 100%);
}

.ig-connect .ig-grid span:nth-child(2) { background: linear-gradient(135deg, #58cdff 0%, #0088fe 55%, #6a11cb 100%); }
.ig-connect .ig-grid span:nth-child(3) { background: linear-gradient(135deg, #2ecc71 0%, #22d3ee 55%, #0088fe 100%); }
.ig-connect .ig-grid span:nth-child(4) { background: linear-gradient(135deg, #df62db 0%, #6a11cb 100%); }
.ig-connect .ig-grid span:nth-child(5) { background: linear-gradient(135deg, #ffa109 0%, #E1306C 100%); }
.ig-connect .ig-grid span:nth-child(6) { background: linear-gradient(135deg, #58cdff 0%, #229bff 100%); }
.ig-connect .ig-grid span:nth-child(7) { background: linear-gradient(135deg, #2ecc71 0%, #0095f6 100%); }
.ig-connect .ig-grid span:nth-child(8) { background: linear-gradient(135deg, #E1306C 0%, #df62db 100%); }
.ig-connect .ig-grid span:nth-child(9) { background: linear-gradient(135deg, #229bff 0%, #6a11cb 100%); }

/* ---------- Sign Up Providers: sign-up sheet inside the phone ---------- */
.signup-providers .ig-profile-row {
    align-items: center;
}

.signup-providers .ig-phone {
    height: 33rem;
}

.signup-providers .su-sheet {
    margin-top: .75rem;
    padding: .9rem;
    border-radius: 1rem;
    background: #f8f9fa;
}

.signup-providers .su-sheet__title {
    margin-bottom: .6rem;
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
}

.signup-providers .su-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin-bottom: .45rem;
    padding: .5rem .75rem;
    border: 1px solid #e3e6ea;
    border-radius: 999px;
    background: #fff;
    font-size: .75rem;
    font-weight: 600;
    color: #212529;
}

.signup-providers .su-btn i {
    font-size: .95rem;
}

.signup-providers .su-or {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: .35rem 0 .6rem;
    font-size: .7rem;
    color: #6c757d;
}

.signup-providers .su-or::before,
.signup-providers .su-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e3e6ea;
}

.signup-providers .su-row {
    display: flex;
    gap: .45rem;
}

.signup-providers .su-btn--half {
    flex: 1;
    margin-bottom: 0;
}

.signup-providers .ig-float {
    top: 10%;
}

.signup-providers .ig-float.f2 {
    top: 14%;
}
