.ig-hero {
    padding: 70px 20px;
    background: radial-gradient(circle at 10% 20%, #feda75 0%, #fa7e1e 30%, #d62976 55%, #962fbf 75%, #4f5bd5 100%);
    color: #fff;
    text-align: center;
}

.ig-hero h2 {
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 700;
}

/* SEARCH AREA */
.ig-search {
    display: flex;
    gap: 12px;
    align-items: stretch;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto 20px;
    padding: 16px;
    border-radius: 18px;
    box-sizing: border-box;
}

/* INPUT BOX */
.ig-input {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    display: grid;
    grid-template-columns: 1fr max-content;
    padding: 8px;
    width: 100%;
    max-width: 672px;
    box-sizing: border-box;
}

.ig-input input {
    border: none;
    outline: none;
    background: transparent;
    padding: 14px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.ig-input input::placeholder {
    color: #9b9b9b;
}

/* BUTTONS */
.ig-btn {
    border: none;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 600;
    padding: 14px;
    font-size: 16px;
    box-sizing: border-box;
}

.ig-btn.paste {
    background: #ffffff;
    color: #262626;
    border: 1px solid #eaeaea;
}

.ig-btn.download {
    background: #d62976;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.ig-btn.download:hover {
    background: #b81f62;
}

/* LOADER */
#instagram-loader {
    display: none;
    margin-top: 16px;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ig-loader-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #ffffff;
    animation: igspin 0.8s linear infinite;
}

@keyframes igspin {
    to { transform: rotate(360deg); }
}

/* RESULT CARD */
.instagram-result {
    margin: 24px auto;
    max-width: 720px;
    text-align: center;
}

.instagram-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
    display: inline-block;
    width: 100%;
    max-width: 320px;
}

.instagram-card img.preview {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
}

.instagram-card .download-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    background: #d62976;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

/* ===================== */
/* 📱 MOBILE FIX (IMPORTANT) */
/* ===================== */
@media (max-width: 768px) {

    .ig-search {
        flex-direction: column;
        padding: 12px;
    }

    /* SAME WIDTH FOR INPUT & BUTTONS */
    .ig-input,
    .ig-btn {
        width: 100%;
        max-width: 672px;
        margin-left: auto;
        margin-right: auto;
    }

    .ig-input {
        grid-template-columns: 1fr;
    }
}
