@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Poppins:wght@500;700&display=swap");

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Poppins:wght@500;700&display=swap');

        :root {
            --primary: #18122B;
            --secondary: #393053;
            --accent: #A678F8;
            --gold: #FFD700;
            --glass-bg: rgba(255, 255, 255, 0.13);
            --glass-blur: 32px;
            --shadow: 0 8px 32px rgba(30, 41, 59, 0.18);
            --radius: 28px;
            --input-bg: rgba(255, 255, 255, 0.22);
            --input-border: #A678F8;
            --input-focus: #FFD700;
            --highlight-border: linear-gradient(135deg, #A678F8, #FFD700 100%);
        }

        .ig-highlights-wrapper {
            font-family: 'Poppins', 'Inter', 'Segoe UI', Arial, sans-serif;
            min-height: 100vh;
            margin: 0;
            padding: 0;
            color: var(--primary);
            background: linear-gradient(120deg, #18122B 0%, #393053 100%);
            display: flex;
            flex-direction: column;
            background-attachment: fixed;
        }

        .ig-header-section {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 18px;
            padding: 54px 0 18px 0;
        }

        .ig-logo-container {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #A678F8 0%, #FFD700 100%);
            border-radius: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 24px rgba(166, 120, 248, 0.18);
            border: 2.5px solid #fffbe6;
            animation: popIn 0.7s cubic-bezier(.4, 0, .2, 1);
        }

        .ig-logo-container i {
            color: #fff;
            font-size: 2.7rem;
            background: none;
            text-shadow: 0 2px 12px #A678F8;
        }

        .ig-main-title {
            font-size: 2.7rem;
            font-weight: 900;
            letter-spacing: -1px;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .ig-premium-badge {
            background: linear-gradient(90deg, var(--gold) 0%, #ffb300 100%);
            color: #23272f;
            font-size: 1.1rem;
            font-weight: 900;
            border-radius: 8px;
            padding: 3px 14px;
            margin-left: 10px;
            vertical-align: middle;
            box-shadow: 0 2px 8px rgba(255, 215, 0, 0.18);
            letter-spacing: 0.03em;
            border: 2px solid #fffbe6;
        }

        .ig-subtitle-text {
            text-align: center;
            color: #fff;
            font-size: 1.25rem;
            margin-bottom: 44px;
            font-weight: 600;
            text-shadow: none;
        }

        .ig-tool-container {
            background: var(--glass-bg);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            max-width: 1320px;
            margin: 0 auto 44px auto;
            padding: 54px 44px 44px 44px;
            position: relative;
            backdrop-filter: blur(var(--glass-blur));
            border: 2.5px solid var(--accent);
            animation: fadeIn 0.8s cubic-bezier(.4, 0, .2, 1);
        }

        .ig-input-section {
            position: relative;
            margin-bottom: 32px;
            background: rgba(255, 255, 255, 0.18);
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(166, 120, 248, 0.10);
            padding: 14px;
            display: flex;
            align-items: center;
            border: 2px solid var(--accent);
            max-width: 100%;
            gap: 12px;
        }

        .ig-input-wrapper {
            display: flex;
            align-items: center;
            gap: 0;
            width: 100%;
            position: relative;
        }

        .ig-input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--accent);
            font-size: 1.3rem;
            pointer-events: none;
            z-index: 2;
        }

        .ig-input-section .ig-input-field {
            flex: 1;
            padding: 18px 18px 18px 50px;
            border-radius: 10px;
            border: none;
            font-size: 1.18rem;
            font-family: 'Poppins', 'Inter', Arial, sans-serif;
            font-weight: 600;
            outline: none;
            background: rgba(255, 255, 255, 0.9);
            color: var(--primary);
            transition: all 0.2s ease;
            box-shadow: none;
            letter-spacing: 0.01em;
        }

        .ig-input-section .ig-input-field:focus {
            border: 2px solid var(--input-focus);
            box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
            background: rgba(255, 255, 255, 1);
        }

        .ig-input-section .ig-input-field::placeholder {
            color: #666;
            font-weight: 500;
        }

        .ig-input-section .ig-submit-btn {
            background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
            color: #fff;
            border: none;
            border-radius: 10px;
            padding: 0 30px;
            font-size: 1.13rem;
            font-family: 'Poppins', 'Inter', Arial, sans-serif;
            font-weight: 700;
            cursor: pointer;
            height: 62px;
            transition: all 0.18s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 2px 8px rgba(166, 120, 248, 0.15);
            position: relative;
            overflow: hidden;
            letter-spacing: 0.01em;
            text-shadow: none;
            white-space: nowrap;
            justify-content: center;
        }

        .ig-input-section .ig-submit-btn:after {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(120deg, #fffbe6 0%, transparent 100%);
            opacity: 0.18;
            pointer-events: none;
        }

        .ig-input-section .ig-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(166, 120, 248, 0.25);
        }

        .ig-input-section .ig-submit-btn:active {
            transform: scale(0.97);
        }

        .ig-input-section .ig-submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: none;
            }
        }

        @keyframes popIn {
            0% {
                transform: scale(0.7);
                opacity: 0;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .ig-error-message {
            color: #e11d48;
            text-align: center;
            margin-bottom: 10px;
            display: none;
            font-weight: 700;
            letter-spacing: 0.01em;
        }

        .ig-loading-message {
            text-align: center;
            color: var(--accent);
            margin-top: 36px;
            font-size: 1.18rem;
            font-weight: 700;
        }

        .ig-highlights-section {
            margin-top: 24px;
        }

        .ig-highlights-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 32px;
            margin-top: 20px;
        }

      

        .ig-highlight-card {
            background: var(--glass-bg);
            border-radius: 24px;
            box-shadow: 0 8px 32px rgba(166, 120, 248, 0.15);
            padding: 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            border: 2px solid transparent;
            animation: fadeIn 0.7s cubic-bezier(.4, 0, .2, 1);
            cursor: pointer;
            min-height: 200px;
            backdrop-filter: blur(20px);
        }

        .ig-highlight-card:hover {
            box-shadow: 0 16px 48px rgba(166, 120, 248, 0.25);
            transform: translateY(-8px);
            border-color: var(--accent);
        }

        .ig-highlight-thumb {
            width: 180px;
            height: 180px;
            border-radius: 20px;
            object-fit: cover;
            border: 3px solid var(--accent);
            background: #f3f4f6;
            box-shadow: 0 8px 32px rgba(166, 120, 248, 0.15);
            transition: all 0.3s ease;
            margin-bottom: 16px;
            position: relative;
            cursor: pointer;
        }

        .ig-highlight-card:hover .ig-highlight-thumb {
            border-color: var(--gold);
            transform: scale(1.05);
            box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
        }

        .ig-highlight-thumb-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            /* background: rgba(0, 0, 0, 0.5); */
            border-radius: 17px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .ig-highlight-card:hover .ig-highlight-thumb-overlay {
            opacity: 1;
        }

        .ig-highlight-thumb-overlay i {
            color: white;
            font-size: 28px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        }

        .ig-highlight-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
        }

        .ig-highlight-title {
            font-size: 1.2rem;
            color: #fff;
            font-weight: 800;
            margin-bottom: 12px;
            line-height: 1.3;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .ig-highlight-count {
            font-size: 1rem;
            color: var(--accent);
            margin-bottom: 0;
            display: block;
            font-weight: 700;
            background: rgba(166, 120, 248, 0.15);
            padding: 8px 16px;
            border-radius: 12px;
            border: 2px solid rgba(166, 120, 248, 0.3);
            backdrop-filter: blur(10px);
        }

        .ig-highlight-items {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 16px;
            justify-content: center;
            width: 100%;
        }

        .ig-highlight-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .ig-highlight-img-container {
            position: relative;
            cursor: pointer;
            border-radius: 12px;
            overflow: hidden;
        }

        .ig-highlight-img-container img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 12px;
            border: 2px solid var(--accent);
            transition: all 0.3s ease;
        }

        .ig-highlight-img-container:hover img {
            border-color: var(--gold);
            transform: scale(1.05);
        }

        .ig-highlight-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .ig-highlight-img-container:hover .ig-highlight-overlay {
            opacity: 1;
        }

        .ig-highlight-overlay i {
            color: white;
            font-size: 20px;
        }

        .ig-alt-download-btn {
            background: linear-gradient(90deg, #1e88e5 0%, #43a047 100%);
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
        }

        .ig-alt-download-btn:hover {
            background: linear-gradient(90deg, #1565c0 0%, #388e3c 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(30, 136, 229, 0.4);
        }

        .ig-alt-download-btn:active {
            transform: scale(0.95);
        }

        /* Modal */
        .ig-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(30, 41, 59, 0.18);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.22s;
        }

        .ig-modal-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        .ig-modal-content {
            background: linear-gradient(120deg, #fffbe6 0%, #f8fafc 100%);
            border-radius: 24px;
            padding: 48px 38px 32px 38px;
            max-width: 98vw;
            box-shadow: 0 12px 48px rgba(255, 215, 0, 0.18);
            text-align: center;
            min-width: 320px;
            border: 3px solid var(--gold);
            animation: popIn 0.6s cubic-bezier(.4, 0, .2, 1);
            position: relative;
        }

        .ig-modal-close {
            position: absolute;
            top: 14px;
            right: 14px;
            background: #fff;
            color: var(--primary);
            border: none;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(30, 41, 59, 0.07);
            transition: background 0.18s, color 0.18s;
        }

        .ig-modal-close:hover {
            background: var(--accent);
            color: #fff;
        }

        .ig-modal-title {
            font-size: 1.13rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 10px;
            text-align: center;
        }

        .ig-modal-media {
            max-width: 90vw;
            max-height: 70vh;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            margin: 20px 0;
        }

        .ig-modal-download {
            background: var(--accent);
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 10px 28px;
            font-size: 1.08rem;
            font-weight: 700;
            cursor: pointer;
            margin-bottom: 8px;
            transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
            box-shadow: 0 2px 8px rgba(30, 41, 59, 0.08);
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0 auto;
        }

        .ig-modal-download:active {
            transform: scale(0.97);
        }

        .ig-modal-download:hover {
            background: var(--primary);
        }

        .ig-no-result {
            text-align: center;
            color: #fff;
            margin-top: 38px;
            font-size: 1.18rem;
            font-weight: 700;
            text-shadow: 0 1px 8px #A678F8;
        }
			
			        @media (max-width: 992px) {
            .ig-highlights-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 24px;
            }

            .ig-tool-container {
                padding: 40px 30px;
                margin: 0 20px 40px 20px;
            }

            .ig-header-section {
                padding: 40px 0 18px 0;
            }

            .ig-main-title {
                font-size: 2.3rem;
            }

            .ig-logo-container {
                width: 60px;
                height: 60px;
                border-radius: 18px;
            }

            .ig-logo-container i {
                font-size: 2.2rem;
            }

            .ig-premium-badge {
                font-size: 0.95rem;
                padding: 2px 10px;
            }

            .ig-subtitle-text {
                font-size: 1.1rem;
                margin-bottom: 32px;
            }

            .ig-input-section .ig-input-field {
                padding: 16px 16px 16px 45px;
                font-size: 1.1rem;
            }

            .ig-input-icon {
                left: 12px;
                font-size: 1.2rem;
            }

            .ig-input-section .ig-submit-btn {
                height: 58px;
                padding: 0 25px;
                font-size: 1.05rem;
            }

            .ig-highlight-card {
                padding: 20px;
                min-height: 180px;
            }

            .ig-highlight-thumb {
                width: 150px;
                height: 150px;
            }

            .ig-highlight-title {
                font-size: 1.1rem;
            }

            .ig-highlight-count {
                font-size: 0.9rem;
                padding: 6px 14px;
            }

            .ig-highlight-img-container img {
                width: 70px;
                height: 70px;
            }
								.ig-logo-container {
	width: 45px;
	height: 45px;
	border-radius: 12px;
	margin-top: 40px;
}
        }

        @media (max-width: 768px) {
            .ig-highlights-grid {
                grid-template-columns: 1fr;
                gap: 20px;
                max-width: 400px;
                margin-left: auto;
                margin-right: auto;
            }

            .ig-main-title {
                font-size: 2rem;
            }

            .ig-logo-container {
                width: 55px;
                height: 55px;
                border-radius: 16px;
            }

            .ig-logo-container i {
                font-size: 2rem;
            }

            .ig-premium-badge {
                font-size: 0.9rem;
                padding: 1px 8px;
            }

            .ig-subtitle-text {
                font-size: 1rem;
                margin-bottom: 28px;
            }

            .ig-tool-container {
                padding: 30px 25px;
                margin: 0 15px 30px 15px;
            }

            .ig-input-section {
                flex-direction: column;
                gap: 15px;
                padding: 12px;
            }

            .ig-input-wrapper {
                width: 100%;
            }

            .ig-input-section .ig-input-field {
                padding: 14px 14px 14px 40px;
                font-size: 1rem;
                height: auto;
            }

            .ig-input-icon {
                font-size: 1.1rem;
            }

            .ig-input-section .ig-submit-btn {
                width: 100%;
                height: 50px;
                font-size: 1rem;
                padding: 0 20px;
            }

            .ig-highlight-thumb {
                width: 130px;
                height: 130px;
            }

            .ig-highlight-card {
                padding: 18px;
            }

            .ig-modal-content {
                padding: 30px 20px 20px 20px;
                max-width: 95vw;
            }

            .ig-modal-media {
                margin: 15px 0;
            }

            .ig-modal-download {
                padding: 8px 20px;
                font-size: 1rem;
            }
					.ig-logo-container {
	width: 45px;
	height: 45px;
	border-radius: 12px;
	margin-top: 40px;
}
					.ig-input-section .ig-input-field {
	padding: 12px 12px 12px 18px;
	font-size: 0.95rem;
	text-align: center;
}
        }

        @media (max-width: 600px) {
            .ig-main-title {
                font-size: 1.8rem;
                gap: 8px;
            }

            .ig-logo-container {
                width: 50px;
                height: 50px;
                border-radius: 14px;
            }

            .ig-logo-container i {
                font-size: 1.8rem;
            }

            .ig-premium-badge {
                font-size: 0.8rem;
                padding: 0 6px;
                margin-left: 5px;
            }

            .ig-subtitle-text {
                font-size: 0.9rem;
                margin-bottom: 24px;
            }

            .ig-tool-container {
                padding: 25px 20px;
                margin: 0 10px 25px 10px;
            }

            .ig-input-section .ig-input-field {
                padding: 12px 12px 12px 35px;
                font-size: 0.95rem;
            }

            .ig-input-icon {
                left: 10px;
                font-size: 1rem;
            }

            .ig-input-section .ig-submit-btn {
                height: 45px;
                font-size: 0.95rem;
                padding: 0 15px;
            }

            .ig-highlight-card {
                padding: 15px;
                min-height: 160px;
            }

            .ig-highlight-thumb {
                width: 110px;
                height: 110px;
                border-radius: 16px;
                margin-bottom: 12px;
            }

            .ig-highlight-thumb-overlay {
                border-radius: 13px;
            }

            .ig-highlight-thumb-overlay i {
                font-size: 24px;
            }

            .ig-highlight-title {
                font-size: 1rem;
                margin-bottom: 8px;
            }

            .ig-highlight-count {
                font-size: 0.85rem;
                padding: 5px 12px;
                border-radius: 10px;
            }

            .ig-highlight-items {
                gap: 10px;
            }

            .ig-highlight-img-container img {
                width: 60px;
                height: 60px;
                border-radius: 10px;
            }

            .ig-highlight-overlay {
                border-radius: 10px;
            }

            .ig-highlight-overlay i {
                font-size: 18px;
            }

            .ig-modal-content {
                padding: 25px 18px 18px 18px;
                border-radius: 20px;
            }

            .ig-modal-close {
                width: 32px;
                height: 32px;
                font-size: 1rem;
                top: 10px;
                right: 10px;
            }

            .ig-modal-title {
                font-size: 1rem;
            }

            .ig-modal-media {
                margin: 10px 0;
            }

            .ig-modal-download {
                padding: 6px 16px;
                font-size: 0.95rem;
            }
					.ig-logo-container {
	width: 45px;
	height: 45px;
	border-radius: 12px;
	margin-top: 40px;
}
					.ig-header-section {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 54px 0 18px 0;
	flex-direction: column;
}
					.ig-input-section .ig-input-field {
	padding: 12px 12px 12px 18px;
	font-size: 0.95rem;
	text-align: center;
}
        }

        @media (max-width: 400px) {
            .ig-header-section {
                flex-direction: column;
                padding: 30px 0 15px 0;
            }

            .ig-main-title {
                font-size: 1.6rem;
                flex-wrap: wrap;
                justify-content: center;
                text-align: center;
            }

            .ig-logo-container {
                width: 45px;
                height: 45px;
                border-radius: 12px;
            }

            .ig-logo-container i {
                font-size: 1.6rem;
            }

            .ig-premium-badge {
                font-size: 0.75rem;
                margin-left: 0;
                margin-top: 5px;
                display: inline-block;
            }

            .ig-subtitle-text {
                font-size: 0.85rem;
                margin-bottom: 20px;
                padding: 0 10px;
            }

            .ig-tool-container {
                padding: 20px 15px;
                margin: 0 8px 20px 8px;
            }

            .ig-input-section {
                padding: 10px;
            }

            .ig-input-section .ig-input-field {
                padding: 10px 10px 10px 30px;
                font-size: 0.9rem;
            }

            .ig-input-icon {
                font-size: 0.9rem;
            }

            .ig-input-section .ig-submit-btn {
                height: 40px;
                font-size: 0.9rem;
            }

            .ig-highlight-card {
                padding: 12px;
                min-height: 140px;
            }

            .ig-highlight-thumb {
                width: 90px;
                height: 90px;
                border-radius: 14px;
                margin-bottom: 10px;
            }

            .ig-highlight-thumb-overlay {
                border-radius: 11px;
            }

            .ig-highlight-thumb-overlay i {
                font-size: 20px;
            }

            .ig-highlight-title {
                font-size: 0.95rem;
            }

            .ig-highlight-count {
                font-size: 0.8rem;
                padding: 4px 10px;
            }

            .ig-highlight-img-container img {
                width: 50px;
                height: 50px;
            }

            .ig-highlight-overlay i {
                font-size: 16px;
            }

            .ig-modal-content {
                padding: 20px 15px 15px 15px;
                border-radius: 18px;
            }

            .ig-modal-close {
                width: 28px;
                height: 28px;
                font-size: 0.9rem;
            }

            .ig-modal-title {
                font-size: 0.95rem;
            }

            .ig-modal-download {
                font-size: 0.9rem;
                padding: 5px 12px;
            }
					.ig-logo-container {
	width: 45px;
	height: 45px;
	border-radius: 12px;
	margin-top: 40px;
}
					.ig-header-section {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 54px 0 18px 0;
	flex-direction: column;
}
					.ig-input-section .ig-input-field {
	padding: 12px 12px 12px 18px;
	font-size: 0.95rem;
	text-align: center;
}
        }

        @media (max-width: 375px) {
            .ig-main-title {
                font-size: 1.5rem;
            }

            .ig-subtitle-text {
                font-size: 0.8rem;
            }

            .ig-tool-container {
                padding: 18px 12px;
            }

            .ig-input-section .ig-input-field {
                font-size: 0.85rem;
            }

            .ig-input-section .ig-submit-btn {
                font-size: 0.85rem;
            }

            .ig-highlight-card {
                min-height: 130px;
            }

            .ig-highlight-thumb {
                width: 80px;
                height: 80px;
            }

            .ig-highlight-title {
                font-size: 0.9rem;
            }

            .ig-highlight-count {
                font-size: 0.75rem;
            }

            .ig-highlight-img-container img {
                width: 45px;
                height: 45px;
            }
					.ig-logo-container {
	width: 45px;
	height: 45px;
	border-radius: 12px;
	margin-top: 40px;
}
        }

/* --- Codex CSS updates --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Poppins:wght@500;700&display=swap');

:root {
    --primary: #171123;
    --secondary: #322449;
    --accent: #8b5cf6;
    --accent-2: #ec4899;
    --gold: #fbbf24;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #171123;
    --muted: #64748b;
    --success: #16a34a;
    --danger: #e11d48;
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-blur: 24px;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    --shadow-soft: 0 12px 34px rgba(139, 92, 246, 0.18);
    --radius: 24px;
    --input-bg: rgba(255, 255, 255, 0.96);
    --input-border: rgba(139, 92, 246, 0.28);
    --input-focus: #f59e0b;
    --highlight-border: linear-gradient(135deg, #8b5cf6, #ec4899 48%, #fbbf24 100%);
}

.ig-highlights-wrapper {
    font-family: 'Poppins', 'Inter', 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 36px 16px 56px;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 10%, rgba(236, 72, 153, 0.28), transparent 28%),
        radial-gradient(circle at 82% 4%, rgba(251, 191, 36, 0.18), transparent 30%),
        linear-gradient(135deg, #120d20 0%, #31204b 48%, #4c1d95 100%);
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    box-sizing: border-box;
}

.ig-highlights-wrapper *,
.ig-highlights-wrapper *::before,
.ig-highlights-wrapper *::after {
    box-sizing: border-box;
}

.ig-header-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 18px 0 14px;
    text-align: center;
}

.ig-logo-container {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 34%, #8134af 68%, #515bd4 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 34px rgba(221, 42, 123, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.62);
    animation: popIn 0.7s cubic-bezier(.4, 0, .2, 1);
}

.ig-logo-container i {
    color: #fff;
    font-size: 2rem;
    background: none;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
}

.ig-main-title {
    font-size: clamp(1.65rem, 3.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.18;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: capitalize !important;
}

.ig-premium-badge {
    background: linear-gradient(90deg, #fde68a 0%, var(--gold) 100%);
    color: #251a08;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 5px 12px;
    margin-left: 10px;
    vertical-align: middle;
    box-shadow: 0 8px 18px rgba(251, 191, 36, 0.22);
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.ig-subtitle-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.95rem, 1.8vw, 1.08rem);
    line-height: 1.65;
    margin: 0 auto 30px;
    font-weight: 500;
    text-shadow: none;
    max-width: 760px;
    text-transform: capitalize !important;
}

.ig-subtitle-text b {
    color: #fde68a;
    font-weight: 700;
}

.ig-tool-container {
    background: var(--glass-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 1120px;
    width: 100%;
    margin: 0 auto 44px;
    padding: 34px;
    position: relative;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.48);
    animation: fadeIn 0.8s cubic-bezier(.4, 0, .2, 1);
}

.ig-tool-container::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: var(--highlight-border);
    opacity: 0.55;
    pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.ig-input-section {
    position: relative;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.68);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 10px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(139, 92, 246, 0.22);
    max-width: 100%;
    gap: 10px;
}

.ig-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    position: relative;
    min-width: 0;
}

.ig-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}

.ig-input-section .ig-input-field {
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 54px;
    min-height: 54px;
    max-height: 54px;
    padding: 0 18px 0 50px;
    border-radius: 14px;
    border: 1px solid var(--input-border);
    font-size: 1rem;
    line-height: 54px;
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
    font-weight: 600;
    outline: none;
    background: var(--input-bg);
    color: var(--primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    letter-spacing: 0.01em;
    resize: none;
    overflow: hidden;
}

.ig-input-section .ig-input-field:focus {
    border: 1px solid var(--input-focus);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: #fff;
}

.ig-input-section .ig-input-field::placeholder {
    color: #8b94a7;
    font-weight: 500;
}

.ig-input-section .ig-submit-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 55%, var(--gold) 125%);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0 26px;
    font-size: 0.98rem;
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
    font-weight: 800;
    cursor: pointer;
    height: 54px;
    min-height: 54px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 14px 28px rgba(139, 92, 246, 0.28);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    text-shadow: none;
    white-space: nowrap;
    justify-content: center;
}

.ig-input-section .ig-submit-btn:after {
    content: '';
    position: absolute;
    left: -40%;
    top: 0;
    width: 35%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    opacity: 0;
    pointer-events: none;
    transform: skewX(-20deg);
    transition: left 0.45s ease, opacity 0.25s ease;
}

.ig-input-section .ig-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(139, 92, 246, 0.34);
    filter: saturate(1.08);
}

.ig-input-section .ig-submit-btn:hover:after {
    left: 110%;
    opacity: 1;
}

.ig-input-section .ig-submit-btn:focus-visible {
    outline: 3px solid rgba(251, 191, 36, 0.45);
    outline-offset: 3px;
}

.ig-input-section .ig-submit-btn:active {
    transform: scale(0.98);
}

.ig-input-section .ig-submit-btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.82);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.ig-error-message {
    color: #fff;
    text-align: center;
    margin: 0 0 16px;
    display: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.95), rgba(190, 18, 60, 0.95));
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.2);
}

.ig-loading-message {
    text-align: center;
    color: var(--accent);
    margin-top: 28px;
    font-size: 1rem;
    font-weight: 800;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 14px;
    padding: 14px 16px;
}

.ig-highlights-section {
    margin-top: 22px;
}

.ig-results {
    width: 100%;
    max-width: 100%;
    min-height: 1px;
}

.ig-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.ig-highlight-card {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.18);
    animation: fadeIn 0.7s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
    min-height: 200px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ig-highlight-card:hover {
    box-shadow: 0 24px 54px rgba(139, 92, 246, 0.24);
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.55);
}

.ig-highlight-thumb {
    width: 170px;
    height: 170px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid rgba(139, 92, 246, 0.8);
    background: #f3f4f6;
    box-shadow: 0 14px 34px rgba(139, 92, 246, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    margin-bottom: 16px;
    position: relative;
    cursor: pointer;
}

.ig-highlight-card:hover .ig-highlight-thumb {
    border-color: var(--gold);
    transform: scale(1.035);
    box-shadow: 0 18px 40px rgba(251, 191, 36, 0.2);
}

.ig-highlight-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ig-highlight-card:hover .ig-highlight-thumb-overlay {
    opacity: 1;
}

.ig-highlight-thumb-overlay i {
    color: white;
    font-size: 28px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ig-highlight-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.ig-highlight-title {
    font-size: 1.08rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.35;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: none;
}

.ig-highlight-count {
    font-size: 0.92rem;
    color: #6d28d9;
    margin-bottom: 0;
    display: block;
    font-weight: 800;
    background: rgba(139, 92, 246, 0.1);
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.22);
    backdrop-filter: blur(10px);
}

.ig-highlight-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
    width: 100%;
}

.ig-highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ig-highlight-img-container {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

.ig-highlight-img-container img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--accent);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.ig-highlight-img-container:hover img {
    border-color: var(--gold);
    transform: scale(1.05);
}

.ig-highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.48);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.ig-highlight-img-container:hover .ig-highlight-overlay {
    opacity: 1;
}

.ig-highlight-overlay i {
    color: white;
    font-size: 20px;
}

.ig-alt-download-btn {
    background: linear-gradient(135deg, #2563eb 0%, #16a34a 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.ig-alt-download-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.3);
    filter: saturate(1.05);
}

.ig-alt-download-btn:active {
    transform: scale(0.96);
}

/* Modal */
.ig-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
    padding: 18px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ig-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ig-modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 44px 34px 30px;
    max-width: min(98vw, 920px);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
    text-align: center;
    min-width: 320px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    animation: popIn 0.45s cubic-bezier(.4, 0, .2, 1);
    position: relative;
}

.ig-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #fff;
    color: var(--primary);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.08rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    transition: background 0.18s, color 0.18s, transform 0.18s;
}

.ig-modal-close:hover {
    background: var(--accent);
    color: #fff;
    transform: rotate(6deg);
}

.ig-modal-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

.ig-modal-media {
    max-width: 90vw;
    max-height: 70vh;
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.24);
    margin: 20px 0;
}

.ig-modal-download {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 11px 26px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 8px;
    transition: box-shadow 0.18s, transform 0.12s, filter 0.18s;
    box-shadow: 0 12px 26px rgba(139, 92, 246, 0.24);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.ig-modal-download:active {
    transform: scale(0.97);
}

.ig-modal-download:hover {
    filter: saturate(1.08);
    box-shadow: 0 16px 34px rgba(139, 92, 246, 0.3);
}

.ig-no-result {
    text-align: center;
    color: var(--primary);
    margin-top: 30px;
    font-size: 1rem;
    font-weight: 800;
    text-shadow: none;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 16px;
    padding: 18px;
}

.fa-brands,
.fa-solid {
    display: inline-block;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-brands {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

.fa-solid {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.fa-instagram,
.fa-eye,
.fa-spinner,
.fa-download,
.fa-xmark,
.fa-expand,
.fa-photo-film {
    display: inline-block;
    width: 1em;
    min-width: 1em;
    text-align: center;
    color: inherit;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 992px) {
    .ig-highlights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .ig-tool-container {
        padding: 30px 24px;
        margin: 0 auto 38px;
    }

    .ig-header-section {
        padding: 14px 0 14px;
    }

    .ig-main-title {
        font-size: clamp(1.55rem, 3.6vw, 2rem);
    }

    .ig-logo-container {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 16px;
    }

    .ig-logo-container i {
        font-size: 1.9rem;
    }

    .ig-premium-badge {
        font-size: 0.78rem;
        padding: 4px 10px;
    }

    .ig-subtitle-text {
        font-size: 1rem;
        margin-bottom: 26px;
    }

    .ig-input-section .ig-input-field {
        height: 54px;
        min-height: 54px;
        max-height: 54px;
        padding: 0 16px 0 46px;
        font-size: 0.98rem;
        line-height: 54px;
    }

    .ig-input-icon {
        left: 15px;
        font-size: 1.05rem;
    }

    .ig-input-section .ig-submit-btn {
        height: 54px;
        min-height: 54px;
        padding: 0 22px;
        font-size: 0.96rem;
    }

    .ig-highlight-card {
        padding: 20px;
        min-height: 180px;
    }

    .ig-highlight-thumb {
        width: 148px;
        height: 148px;
    }

    .ig-highlight-title {
        font-size: 1.04rem;
    }

    .ig-highlight-count {
        font-size: 0.88rem;
        padding: 7px 13px;
    }

    .ig-highlight-img-container img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .ig-highlights-wrapper {
        padding: 24px 14px 40px;
        background-attachment: scroll;
    }

    .ig-highlights-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
    }

    .ig-header-section {
        flex-direction: column;
        gap: 12px;
        padding: 8px 0 12px;
    }

    .ig-main-title {
        font-size: 1.7rem;
        justify-content: center;
        text-align: center;
    }

    .ig-logo-container {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        border-radius: 15px;
        margin-top: 0;
    }

    .ig-logo-container i {
        font-size: 1.75rem;
    }

    .ig-premium-badge {
        font-size: 0.76rem;
        padding: 4px 9px;
    }

    .ig-subtitle-text {
        font-size: 0.96rem;
        margin-bottom: 22px;
        padding: 0 4px;
    }

    .ig-tool-container {
        padding: 22px 16px;
        margin: 0 auto 30px;
        border-radius: 20px;
    }

    .ig-input-section {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
        border-radius: 16px;
    }

    .ig-input-wrapper {
        width: 100%;
    }

    .ig-input-section .ig-input-field {
        width: 100%;
        height: 52px;
        min-height: 52px;
        max-height: 52px;
        padding: 0 14px 0 44px;
        font-size: 0.96rem;
        line-height: 52px;
        text-align: left;
    }

    .ig-input-icon {
        left: 15px;
        font-size: 1rem;
    }

    .ig-input-section .ig-submit-btn {
        width: 100%;
        height: 52px;
        min-height: 52px;
        font-size: 0.96rem;
        padding: 0 18px;
    }

    .ig-highlight-thumb {
        width: 130px;
        height: 130px;
    }

    .ig-highlight-card {
        padding: 18px;
    }

    .ig-modal-content {
        padding: 34px 18px 20px;
        max-width: 95vw;
        min-width: 0;
        width: 100%;
    }

    .ig-modal-media {
        margin: 15px 0;
    }

    .ig-modal-download {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 10px 18px;
        font-size: 0.96rem;
    }
}

@media (max-width: 600px) {
    .ig-highlights-wrapper {
        padding: 20px 12px 34px;
    }

    .ig-main-title {
        font-size: 1.52rem;
        gap: 8px;
        flex-wrap: wrap;
    }

    .ig-logo-container {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 14px;
    }

    .ig-logo-container i {
        font-size: 1.65rem;
    }

    .ig-premium-badge {
        font-size: 0.74rem;
        padding: 3px 8px;
        margin-left: 5px;
    }

    .ig-subtitle-text {
        font-size: 0.92rem;
        margin-bottom: 20px;
        line-height: 1.55;
    }

    .ig-tool-container {
        padding: 18px 12px;
        margin: 0 auto 24px;
    }

    .ig-input-section .ig-input-field {
        height: 50px;
        min-height: 50px;
        max-height: 50px;
        padding: 0 14px 0 42px;
        font-size: 0.94rem;
        line-height: 50px;
    }

    .ig-input-icon {
        left: 14px;
        font-size: 0.96rem;
    }

    .ig-input-section .ig-submit-btn {
        height: 50px;
        min-height: 50px;
        font-size: 0.94rem;
        padding: 0 15px;
    }

    .ig-highlight-card {
        padding: 15px;
        min-height: 160px;
    }

    .ig-highlight-thumb {
        width: 112px;
        height: 112px;
        border-radius: 16px;
        margin-bottom: 12px;
    }

    .ig-highlight-thumb-overlay {
        border-radius: 13px;
    }

    .ig-highlight-thumb-overlay i {
        font-size: 24px;
    }

    .ig-highlight-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .ig-highlight-count {
        font-size: 0.84rem;
        padding: 6px 12px;
        border-radius: 999px;
    }

    .ig-highlight-items {
        gap: 10px;
    }

    .ig-highlight-img-container img {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }

    .ig-highlight-overlay {
        border-radius: 10px;
    }

    .ig-highlight-overlay i {
        font-size: 18px;
    }

    .ig-modal-content {
        padding: 30px 16px 18px;
        border-radius: 20px;
    }

    .ig-modal-close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }

    .ig-modal-title {
        font-size: 1rem;
    }

    .ig-modal-media {
        margin: 10px 0;
    }

    .ig-modal-download {
        padding: 9px 16px;
        font-size: 0.94rem;
    }
}

@media (max-width: 400px) {
    .ig-highlights-wrapper {
        padding: 18px 10px 30px;
    }

    .ig-header-section {
        flex-direction: column;
        padding: 6px 0 12px;
    }

    .ig-main-title {
        font-size: 1.38rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .ig-logo-container {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
        margin-top: 0;
    }

    .ig-logo-container i {
        font-size: 1.5rem;
    }

    .ig-premium-badge {
        font-size: 0.72rem;
        margin-left: 0;
        margin-top: 5px;
        display: inline-block;
    }

    .ig-subtitle-text {
        font-size: 0.88rem;
        margin-bottom: 18px;
        padding: 0 4px;
    }

    .ig-tool-container {
        padding: 15px 10px;
        margin: 0 auto 20px;
        border-radius: 18px;
    }

    .ig-input-section {
        padding: 8px;
    }

    .ig-input-section .ig-input-field {
        height: 48px;
        min-height: 48px;
        max-height: 48px;
        padding: 0 12px 0 38px;
        font-size: 0.9rem;
        line-height: 48px;
    }

    .ig-input-icon {
        left: 12px;
        font-size: 0.9rem;
    }

    .ig-input-section .ig-submit-btn {
        height: 48px;
        min-height: 48px;
        font-size: 0.9rem;
    }

    .ig-highlight-card {
        padding: 12px;
        min-height: 140px;
    }

    .ig-highlight-thumb {
        width: 96px;
        height: 96px;
        border-radius: 14px;
        margin-bottom: 10px;
    }

    .ig-highlight-thumb-overlay {
        border-radius: 11px;
    }

    .ig-highlight-thumb-overlay i {
        font-size: 20px;
    }

    .ig-highlight-title {
        font-size: 0.94rem;
    }

    .ig-highlight-count {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .ig-highlight-img-container img {
        width: 50px;
        height: 50px;
    }

    .ig-highlight-overlay i {
        font-size: 16px;
    }

    .ig-modal-content {
        padding: 28px 14px 15px;
        border-radius: 18px;
    }

    .ig-modal-close {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .ig-modal-title {
        font-size: 0.95rem;
    }

    .ig-modal-download {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

@media (max-width: 375px) {
    .ig-main-title {
        font-size: 1.3rem;
    }

    .ig-subtitle-text {
        font-size: 0.84rem;
    }

    .ig-tool-container {
        padding: 14px 9px;
    }

    .ig-input-section .ig-input-field {
        font-size: 0.86rem;
    }

    .ig-input-section .ig-submit-btn {
        font-size: 0.86rem;
    }

    .ig-highlight-card {
        min-height: 130px;
    }

    .ig-highlight-thumb {
        width: 84px;
        height: 84px;
    }

    .ig-highlight-title {
        font-size: 0.9rem;
    }

    .ig-highlight-count {
        font-size: 0.75rem;
    }

    .ig-highlight-img-container img {
        width: 45px;
        height: 45px;
    }
}